Please convert this mod rewrite rule

alex1950 nginx-forum at nginx.us
Tue Apr 12 03:56:26 MSD 2011


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




More information about the nginx mailing list