URL跟踪斜线404,附加index.php或?someString的作品
最近,我遇到了一个问题,其中一些页面404通过他们的无止境的path访问。 查询string(如?1234或index.php被附加到path时,相同的页面工作。 例: http://pagesofinterest.net/code/plugins/code-complete/ – 失败 http://pagesofinterest.net/code/plugins/code-complete/?123 – 成功 http://pagesofinterest.net/code/plugins/code-complete/index.php – 成功 我不确定这是一个mod_rewrite还是一个caching问题。 这里是我的.htaccess文件的内容: # Use PHP5.3 Single php.ini as default AddHandler application/x-httpd-php53 .php #ExpiresDefault A0 Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" Header set Pragma "no-cache" DirectoryIndex index.php index.html RewriteEngine on RewriteCond %{HTTP_HOST} ^www.pagesofinterest.net [NC] RewriteRule ^(.*)$ http://pagesofinterest.net/$1 [R=301,NC] # Error documents ErrorDocument 404 […]