22
WordPress: The server is redirecting the request for this address
Posted in Wordpress Development by Admin
0
פרטי מדריך:
- קטגוריה: וורדפרס
- רמת קושי: Wordpress Newbie
- זמן ביצוע: 1-3 Minuts
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.
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.

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
Organic Seo campaigns in Israel & the world. Social Branding, Ad campaigns, Wordpress Web Design and more
Get News Update