Welcome! Log In Create A New Profile

Advanced

Re: Please convert this mod rewrite rule

Pascal Nitsche
April 12, 2011 01:50AM
Nginx does not support .htaccess files. You need to add the rewrite rules to the server configuration and reload nginx.



alex1950 <nginx-forum@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@nginx.org http://nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: Please convert this mod rewrite rule

Pascal Nitsche April 12, 2011 01:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 211
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready