【发布时间】:2012-01-15 21:40:50
【问题描述】:
我的代码:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteRule ^(.*).php(.*) $1$2 [NC]
我正在尝试使用它,所以
www.example.com/test.php?a=not&b=23
在网址中显示为:
www.example.com/test?a=not&b=23
也没有 www 重定向到 www。
我的错误是:
404 not found. The URL /test not found on this server
有什么想法吗?
【问题讨论】:
-
有什么想法吗?怎么了?
-
我收到错误:404 未找到。在此服务器上找不到 URL /test。
-
这个诊断信息应该在问题中。