开发者

Wrong url redirects to index page

I 开发者_如何学Gotype xyz.com/1234(1234 is jargon) it takes me to xyz.com/index.php. I am using apache and mod_rewrite does not have any rule for this .Index page is not even the default page setup by the DirectoryIndex.I am puzzled why it takesto the index page.


Try whether it gets better with

Options -Multiviews

in the .htaccess file. If it doesn't, there must be a rewrite rule somewhere, or maybe an ErrorDocument directive (although that shouldn't redirect).


You can see if it's mod_rewrite doing it to you easily by cranking up rewrite logging to insane levels:

RewriteEngine On
RewriteLogLevel 10
RewriteLog "/var/log/apache2/rewrite.log"

Post your apache config and the relevant .htaccess file and we might be able to be more help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜