Please convert this mod rewrite rule

Pascal Nitsche pascal.nitsche at fansubcode.org
Tue Apr 12 09:49:00 MSD 2011


Nginx does not support .htaccess files. You need to add the rewrite rules to the server configuration and reload nginx.



alex1950 <nginx-forum at nginx.us> schrieb:

rewrite /test-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1; rewrite /test2-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1; rewrite /pm-(.*)\.(jpg|png|gif|html)$ /index.php?pm=$1; rewrite /pt-(.*)\.(jpg|png|gif|html)$ /index.php?pt=$1; rewrite /dt-(.*)\.(jpg|png|gif)$ /index.php?dt=$1; rewrite /dm-(.*)\.(jpg|png|gif)$ /index.php?dm=$1; rewrite /di-(.*)\.(jpg|jpeg|png|gif|bmp)$ /index.php?di=$1; rewrite /page(.*)\.html$ /gallery.php?p=$1; i added this in my htaccess file but not working ! :( * debug log is your friend ( how can i Create or Access to that ? ) Note : I'm Root Access ! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,190338,190358#msg-190358_____________________________________________
nginx mailing list nginx at nginx.org http://nginx.org/mailman/listinfo/nginx 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110412/e156b4bd/attachment.html>


More information about the nginx mailing list