how can fix htaccess problem on NGINX ?

Cipher*

New Member
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.gif
What are the problems you are facing? Hers is a Nginx Lighttpd Tutorial
Quote: 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;
} Nginx doesn't support .htaccess
wink.gif
Quote: Originally Posted by pi0tr3k Nginx doesn't support .htaccess
wink.gif
crying.gif
and how scripts will work with nginx ?
what if we use nginx as reserve proxy ? can in this case read .htaccess ? nginx is what I like to call 'noob-proof' (i.e. noobs can't use it).

A bit of googling goes a long way. @okone, well said. nginx is not supposed for noobs What web script are you hosting? Wordpress?
 
Back
Top