.htaccess 伪静态 跳转问题

<IfModule mod_rewrite.c>
RewriteEngine on


#RewriteRule index.html$ index.php //这句的意思是将所有目录下的index.html的文件跳转向根目录下的index.php,所以,二级目录的index.html首页文件不能访问,而是跳转到index.php这个文件。加个#号注释掉就可以了。


RewriteRule list/(.*)-(s\d+d)-(\d+)\.html$ index.php?q=$1&id=$2&p=$3
RewriteRule detail/(\S+)$ index.php?detail=$1
RewriteRule mm_(.*?).html$ index.php?mm=$1
</IfModule>

posted @ 2016-03-24 18:31  stma  阅读(432)  评论(0)    收藏  举报