有个伪静态规则,在apache正常,K内核 不行
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] RewriteRule ^(.*)/item/(.*)\.html$ $1/product/Index/id/$2 [QSA,PT,L] RewriteRule ^(.*)/about/$ $1/page/index/id/45.html [QSA,PT,L] RewriteRule ^(.*)/brand/(.*)\.html$ $1/product/brand/id/$2 [QSA,PT,L] RewriteRule ^(.*)/help/$ $1/page/index/id/36.html [QSA,PT,L] RewriteRule ^(.*)/help/question.html$ $1/page/index/id/35.html [QSA,PT,L] RewriteRule ^(.*)/info/news.html$ $1/portal/list/index/id/6.html [QSA,PT,L] RewriteRule ^(.*)/info/news.html?p=(.*)\$ $1/portal/list/index/id/6/p/$2.html [QSA,PT,L] RewriteRule ^(.*)/info/sub.html$ $1/portal/list/index/id/7.html [QSA,PT,L] RewriteRule ^(.*)/info/sub.html?p=(.*)\$ $1/portal/list/index/id/7/p/$2.html [QSA,PT,L] </IfModule> 首页可以进, 内页就404了 |
|
沙发#
发布于:2017-03-24 13:12
我也是。K版运行asp.net网站的伪静态,除首页之外,内页全部打不开。
|
|
地板#
发布于:2017-04-24 16:55
这是独立主机的伪静态,你用虚拟主机的伪静态,放在根目录下
|
|
|