*

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)$ ?pm=$1
RewriteRule pt-(.*)\.(jpg|png|gif|html)$ ?pt=$1
RewriteRule dt-(.*)\.(jpg|png|gif)$ ?dt=$1
RewriteRule dm-(.*)\.(jpg|png|gif)$ ?dm=$1
RewriteRule di-(.*)\.(jpg|jpeg|png|gif|bmp)$ ?di=$1
RewriteRule page(.*)\.html$ gallery.php?p=$1

*

需要把上面这个Apache规则转换成Nginx规则!我记得有一个转换网址的啊!
G乃的签名上也有这网址 找不到G乃的ID了
![](hug.gif)