[提问]
求救,htaccess伪静态规则,这样写对吗?
|
|
文章页:
伪静态前网址:www.网址。com/plus/view.php?aid=1408
伪静态后地址:www.网址。com/x1408/
栏目页:
伪静态前网址:www.网址。com/plus/list.php?tid=1
伪静态后地址:www.网址。com/p_1/
然后我htaccess这样写:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /p_([0-9]+)/$ /plus/list.php?tid=$1
RewriteRule /p_([0-9]+)_([0-9]+)_([0-9]+)/$ /plus/list\.php\?tid=$1&TotalResult=$2&PageNo=$3
RewriteRule /x([0-9]+)/$ /plus/view.php?aid=$1
</IfModule>
最后,总是无法访问,我知道,问题一定出在htaccess上,但不知道是哪块疏忽了,请高手救命 |
|
|
|
|
|
|
|
|
|
|
xldgo
发表于 2010-12-19 12:12:55
|
显示全部楼层
|
我用的是LINUX空间,DEDE程序,是在子目录下测试的, |
|
|
|
|
|
|
|
|