Rewrite rule for nginx from Apache

ltss nginx-forum at nginx.us
Thu May 19 06:52:39 MSD 2011


Hello i am new to nginx and i need some help to convert my .htaccess, i
have tried some shit but that not work ...

	Options FollowSymLinks
	RewriteEngine On

	RewriteRule ^(.*)\.php/img/(.*)$ img/$2 [C]
	RewriteRule ^/img/(.*)$ img/$2 [QSA,L]

	RewriteCond %{REQUEST_FILENAME} !^scriptsFtp.*$

	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
		RewriteRule ^(.*)$ index.php [QSA,L]

Thanks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,23868,199175#msg-199175




More information about the nginx mailing list