Welcome! Log In Create A New Profile

Advanced

Migrating from Apache to Nginx

Posted by dionvanh 
Migrating from Apache to Nginx
October 28, 2014 05:26PM
Hello everyone,

We are migrating from Apache to Nginx. The performance has improved a lot!
Almost everything is working fine.

There is only one thing that doesn't work.
The .htaccess from Apache looks like this:
----------------------------------------------------------
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?rt=$1 [L,QSA]
----------------------------------------------------------


I already have made some rewrite rules, but they are not working perfectly:
---------------------------------------------------------
location /subdir/ {
try_files $uri /subdir/index.php?rt=;
}
---------------------------------------------------------
The files are in the subdirectory "subdir".

It would be great if someone could help me. It's a small issue (I think), but you would help me a lot!
Thank you in advance!

Regards,
Dion
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready