Hello,
I am trying to put an old PHP app, I used a few years ago, but it was running under Apache… That’s why I was trying to fit the .htaccess rewriting rules in the conf file of nginx, after changing it to make work those rules :
RewriteBase /en/
RewriteRule ^blog.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /en/blog.php [L]
I tried following, but it doesn’t work…
if (!-f $request_filename){
set $rule_1 1$rule_1;
}
if (!-d $request_filename){
set $rule_1 2$rule_1;
}
if ($rule_1 = “21”){
rewrite /. /en/blog.php last;
}
Could someone please help me? Thank you!