Hello
I use Nginx as webserver
I use v3.5 currently and it works fine
Try to upgrade V4.0.1 but Rewrite is not working
Please help the code I must change.
Thank you
I use Nginx as webserver
I use v3.5 currently and it works fine
Code:
rewrite ^(.*).html$ $1.php break;
if ($request_uri ~ "^(.+)\~s$")
{
rewrite ^/(.*) /stats.php?u=$1
break;
}
if ($request_uri ~ "^(.+)\~d\?(.+)$")
{
rewrite ^/(.*) /delete_file.php?u=$1
break;
}
if ($request_uri ~ "^(.+)\~i$")
{
rewrite ^/(.*) /share_file.php?u=$1
break;
}
if ($request_uri ~ "^(.+)\~f$")
{
rewrite ^/(.*) /view_folder.php?u=$1
break;
}
if (-f $request_filename) { break;}
if (-d $request_filename) { break;}
rewrite ^/(.+)$ /file_download.php?u=$1;
Please help the code I must change.
Thank you