The MU forums have moved to WordPress.org

Redirect Loop - WWW to non-WWW (3 posts)

  1. cgrymala
    Member
    Posted 17 years ago #

    When I configured our new Web server for our new Web site, I set up apache (using ServerAlias within httpd.conf) to redirect all non-www traffic (in other words: example.com) to the www sub-domain (www.example.com).

    Unfortunately, I just discovered that, after installing Wordpress MU to use subdirectories (not subdomains), it goes into an infinite redirect loop, because it tries to redirect me from http://www.example.com to example.com (which, of course, apache then tries to redirect back to http://www.example.com).

    Is there any way to set up Wordpress MU to support www, so that I can use it on my site? I really don't want to change my httpd.conf file (unless there is a way of which I am unaware to disable the ServerAlias specifically for my Wordpress MU directory).

    We are not that keen on using subdomains for our blogs, nor am I keen on changing the ServerAlias set up in my httpd.conf file.

    Any help or advice you can provide would be greatly appreciated. Thank you.

  2. cgrymala
    Member
    Posted 17 years ago #

    I apologize for bumping this, but after a lot more investigation, I have found that the problem is not related to a redirect between www and non-www. Even after I removed that directive and restarted apache, I was still having the same problem, so it must not be that particular issue.

    I am now working on trying to install Wordpress MU in some other directories on my Web server to see if maybe I can get the problem corrected.

    I will post back once I've done some more digging. Thank you.

  3. cgrymala
    Member
    Posted 17 years ago #

    You may delete this topic. I have solved the problem.

    For some reason, although installing Wordpress MU in the subdirectory "blogs" worked just fine on our development Web site, it was causing an infinite redirect loop on our production site.

    However, once I moved the Wordpress MU installation to the subdirectory "wp", it worked just fine. I'm not sure why, but I guess I'll go with it. Thank you.

About this Topic

  • Started 17 years ago by cgrymala
  • Latest reply from cgrymala