Welcome! Log In Create A New Profile

Advanced

Migrating from Apache to Nginx

Posted by dionvanh 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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

Online Users

Guests: 55
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready