Apache .htaccess to Nginx rewrite question

dflyguy nginx-forum at nginx.us
Sun Jun 12 23:57:58 MSD 2011

Hello, I am having a tough time converting my .htaccess rewrite rules
into Nginx, any help will be greatly appreciated. 

Here is what I need converting

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/server-info
RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_URI} (.*).(gif|jpg|jpeg|png)$
RewriteRule ^(.*) http://%{http_host}/pictures/no_picture.jpg

RewriteRule ^video/([-_!~*'()a-zA-Z0-9]+)-([-_!~*'()a-zA-Z0-9]+)


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

More information about the nginx mailing list