Oct
22

0



Although not an exactly WordPress Development guide but still a known problem that might occur when installing WordPress in a sub folder to which you have redirected a domain. I have decided to publish a simple solution to this problem.

To be perfectly honest I am saving this piece of code / solution a little bit for me because there is no chance I would remember this otherwise. This is most common on Windows servers meaning IIS Server which don’t like and don’t support mod_rewrite.

 

The Error

Firefox has detected that the server is redirecting the request for this address

So Why Are We getting An Error

Instead of using a lot of words.. here is a simple image that would explain.
permanent redirect error

 

Whats the solution?

All you have to do in order to fix this is to add the following php code to you functions.php file which would instruct WordPress to cancel the auto redirect the system has!

remove_filter('template_redirect', 'redirect_canonical');

Did you like the article? Share the love

Sagive SEO
Sagive Seo Web Marketing
Organic Seo campaigns in Israel & the world. Social Branding, Ad campaigns, Wordpress Web Design and more
Mailing list Get News Update



 

Leave a Reply