: How can I fix an Apache redirect loop I have a strange Apache/WordPress redirect loop that I can't seem to figure out. Here is the relevant logs and other info: http://pastebin.com/E1afW2vw It
I have a strange Apache/WordPress redirect loop that I can't seem to figure out.
Here is the relevant logs and other info: pastebin.com/E1afW2vw
It seems that the page request gets made, and it tries to redirect to the proper directory based on the Alias given in the httpd.conf file. But when it tries to replace back the given URL, it fails to recognize that the directory is an alias and doubles up the base directory (/blog/blog/).
Any ideas what might be causing this? And how to fix it?
Also... the .htaccess file is located in the root of the /wp directory that is aliased to /blog
More posts by @Hamaas447
1 Comments
Sorted by latest first Latest Oldest Best
It looks to me like you final rewrite rule
RewriteRule . /blog/index.php [L]
should be
RewriteRule . index.php [L]
Since you're already in the /blog/ directory there's no need to add that to the path.
Your first request is not matching any rewrite rules and is falling through to the default DirectoryIndex.
In the second request you are matching 2011/06/suits/ which gets rewritten to /blog/index.php but since you're already in the blog directory it adds the extra /blog and then re-runs through the rules. It re-strips-out the first /blog but then because your first rule doesn't match, it matches on the last rule repeating the process.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.