how can fix htaccess problem on NGINX ?

Status
Not open for further replies.

chiwan

Member
19
2011
0
0
i have many troubles with nginx .. one of them rewrite problem
how can fix htaccess problem on NGINX ?
nginx is good web server but his settings SUCKS :facepalm:
 
7 comments
Hers is a Nginx Lighttpd Tutorial
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]

The two RewriteCond statements check to make sure that there is no filename or directory that matches a user’s request. If not, then it rewrites to the index.php page. The [L] means to stop executing rewrites at that line.
Now for Nginx and it’s Rewrite module:
if (!-e $request_filename) {
rewrite ^(.*)$ index.php last;
}
 
Status
Not open for further replies.
Back
Top