[提问]
godaddy虚拟主机的.htaccess文件的冲突问题
|
|
- <Files ~ "^.(htaccess|htpasswd)$">
- deny from all
- </Files>
- ErrorDocument 404 error.php
- RewriteEngine On
- RewriteRule ^(.*)/(.*)@([0-9]+)/$ detail.php?catalog=$1&id=$3 [L]
- RewriteRule ^(.*)/$ list.php?catalog=$1 [L]
- order deny,allow
复制代码 上面是我的代码,其中- RewriteRule ^(.*)/(.*)@([0-9]+)/$ detail.php?catalog=$1&id=$3 [L]
- RewriteRule ^(.*)/$ list.php?catalog=$1 [L]
复制代码 是有冲突的2行代码,我在本地调试可以通过,但放到服务器上面后,RewriteRule ^(.*)/(.*)@([0-9]+)/$ detail.php?catalog=$1&id=$3 [L]可以执行通过,但
RewriteRule ^(.*)/$ list.php?catalog=$1 [L]一直是无法通过运行
有碰到这种情况的朋友吗?搞了2天了还搞不定,快昏迷了. |
|
|
|
|
|
|
|
|
|
|
timmango
发表于 2008-3-27 23:53:55
|
显示全部楼层
- RewriteRule ^(.*)/$ list.php?catalog=$1 [L]
复制代码 不知道这句为什么就是无法通过 |
|
|
|
|
|
|
|
|