Please convert this mod rewrite rule

alex1950 nginx-forum at nginx.us
Tue Apr 12 02:15:09 MSD 2011


Hi, 

<IfModule mod_rewrite.c>
# Tell PHP that the mod_rewrite module is ENABLED.

	SetEnv HTTP_MOD_REWRITE On
	Options +FollowSymLinks
	RewriteEngine on
	RewriteRule test-(.*)\.htm$ inc/tesmodrewite.php?q=test_$1
	RewriteRule test2-(.*)\.htm$ /inc/tesmodrewite.php?q=test_$1
	RewriteRule pm-(.*)\.(jpg|png|gif|html)$ index.php?pm=$1
	RewriteRule pt-(.*)\.(jpg|png|gif|html)$ index.php?pt=$1
	RewriteRule dt-(.*)\.(jpg|png|gif)$ index.php?dt=$1
	RewriteRule dm-(.*)\.(jpg|png|gif)$ index.php?dm=$1
	RewriteRule di-(.*)\.(jpg|jpeg|png|gif|bmp)$ index.php?di=$1
	RewriteRule page(.*)\.html$ gallery.php?p=$1
</IfModule>


Thanks


Thanks

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




More information about the nginx mailing list