设置伪静态的方法大同小异,博客前边已经介绍了通过 web.config 及 .htaccess 设置QYKCMS伪静的方法(请自行搜索),本文介绍的是httpd.ini的伪静态规则,后面可直接下载附件。
[ISAPI_Rewrite] RewriteRule ^/index.html$ /index.php [I,L] RewriteRule ^/mobile/$ /mobile/index.php [I,L] RewriteRule ^/install/$ /install/index.php [I,L] RewriteRule /([a-zA-Z0-9]+)/?$ /index.php?log=$1 [I,L] RewriteRule /([a-zA-Z0-9]+)/index.html$ /index.php?log=$1 [I,L] RewriteRule /([a-zA-Z0-9]+)/index_([0-9]+).html$ /index.php?log=$1&page=$2 [I,L] RewriteRule /([a-zA-Z0-9]+)/scat_([0-9]+).html$ /index.php?log=$1&scat=$2 [I,L] RewriteRule /([a-zA-Z0-9]+)/scat_([0-9]+)_([0-9]+).html$ /index.php?log=$1&scat=$2&page=$3 [I,L] RewriteRule /([a-zA-Z0-9]+)/lcat_([0-9]+).html$ /index.php?log=$1&lcat=$2 [I,L] RewriteRule /([a-zA-Z0-9]+)/lcat_([0-9]+)_([0-9]+).html$ /index.php?log=$1&lcat=$2&page=$3 [I,L] RewriteRule /([a-zA-Z0-9]+)/article_([0-9]+).html$ /index.php?log=$1&id=$2 [I,L] RewriteRule /([a-zA-Z0-9]+)/article_([0-9]+)_([0-9]+).html$ /index.php?log=$1&id=$2&page=$3 [I,L] RewriteRule /([a-zA-Z0-9]+)/so?(.*) /index.php?log=$1&$2 [I,L]