之前用nginx的两条伪静态规则,换到httpd.ini失效了,谁能帮...
忙转下求伪静态规则,httpd.ini的
http://aaa.com/?p=27
转为:
http://aaa.com/p/27
之前使用nginx的伪静态规则在iis下不起作用了
nginx的规则是:
rewrite ^/p/(.*)/$ /?p=$1;
rewrite ^/p/(.*)$ /?p=$1;
httpd.ini我改成这样了
RewriteCond Host: aaa\.com
RewriteRule ^/p/(.*)/$ /?p=$1
RewriteCond Host: aaa\.com
RewriteRule ^/p/(.*)$/?p=$1
但没起作用,谁帮忙搞下,三克油
mad.gif
解决,这样就行了
RewriteRule ^(.*)/p\/(*) $1/index\.php\?p=$2
RewriteRule ^(.*)/p\/(*)/ $1/index\.php\?p=$2
页:
[1]