Support » Fixing WordPress » www and non-www redirect

  • Roy

    (@gangleri)


    I have a network with an annoying redirect (it has been so since WP 3.0). When you don’t use www in the address, it redirects to the main site, so mysite.com/wp-admin goes to the main site, mysite.com/subsite goes to the main site.

    There is nothing (I think) in htaccess that explains this. I tried a few of these redirects, also adding ‘noredirect’ to wp-config, but to no avail.

    I probably miss something obvious.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Go to Settings – General and delete www. under WordPress Address (URL)

    Roy

    (@gangleri)

    Then everything reverts to non-wwe right? I don’t want to drop the www but I would like a non www url to open the correct site.

    So, in case you get a request to domain.tld/something/something then you just want this to magically change to www.(same-same) via a 301 redirect?

    I’d suggest avoiding simply serving the same content under both www and non-www. Google may get unhappy due to duplicate content…

    However, I first missed that you’re talking about a network installation here. Having no experience at all from those, I’m afraid of suggesting any specific rules in .htaccess.

    Roy

    (@gangleri)

    So, in case you get a request to domain.tld/something/something then you just want this to magically change to www.(same-same) via a 301 redirect?

    Didn’t it use to work that way?

    I’d suggest avoiding simply serving the same content under both www and non-www. Google may get unhappy due to duplicate content…

    I don’t. I thought it didn’t matter if someone started with www in the address bar or not. When somebody knows the address of a subsite and typed mydomain.com/subsite and my site loads under www, isn’t it to be expected that the site just loads rather than the main site?

    Indeed, a network. I think to remember this part worked the same.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘www and non-www redirect’ is closed to new replies.