Forums

[resolved] How to remove WWW for multisite install? (14 posts)

  1. imjscn
    Member
    Posted 1 year ago #

    Hello,
    In "Creating a Network...", It recommends me to change siteurl from "www.domain.com" to "domain.com".

    I don't see in my domain registering or hosting site providing such an option.

    Where can I go to change this?

    Thanks!

  2. It's in WordPress.

    Are you running Single Site right now? If so, just change your URLs from http://www.domain.com to domain.com

  3. imjscn
    Member
    Posted 1 year ago #

    Done! Thanks!

  4. dmmagic
    Member
    Posted 1 year ago #

    Where do you go to make this change? Is it in General Settings, under "WordPress address (URL)" and "Site address (URL)"? When I remove the "http://" off of both URLs and click save, I get the error "The WordPress address you entered did not appear to be a valid URL. Please enter a valid URL."

  5. You don't remove the http off it... Stupid auto-editing URL feature of the forum.

    http://www.domain.com becomes http://domain.com

  6. dmmagic
    Member
    Posted 1 year ago #

    I just went through the multi site installation anyway without making any changes. Should I go and make the edits now or is it too late?

  7. It's more complicated now.

    You have to edit your wp-config.php to remove the www from the domain, and then you have to edit your database to change all instances of http://www.domain to just domain.

    It's not complicated, it's just a pain in the ass.

  8. dmmagic
    Member
    Posted 1 year ago #

    Since I haven't done much, I can just start over. Only loose about an hour of work.

    :)

    What kind of errors could occur if I didn't remove the "www"?

  9. Haven't a clue :) I don't use www to begin with!

  10. Andrea_r
    team pirate
    Posted 1 year ago #

    What kind of errors could occur if I didn't remove the "www"?

    really, not much (that I know of). it's a precaution though, as you'll have to redirect the non-www to the root.

  11. hlanggo
    Member
    Posted 1 year ago #

    @ipstenu

    Is (below) correct?

    To ADD www to a multisite (because I completely forgot the www during installation); sighs):

    1. Edit wp-config.php to ADD the www to the domain.
    2. Edit database to change all "domain.com" to "www.domain.com".
    3. Nothing else?

    ---

    @Andrea_r

    Can you detail out what you mean by:

    it's a precaution though, as you'll have to redirect the non-www to the root.

    ? Unfortunately, I have to stay with www for a website which has been using www for a long long time.

    What extra precautions do I have to take for a www multisite?

  12. Andrea_r
    team pirate
    Posted 1 year ago #

    Not a precaution for the www, you need to take extra precautions on the server level,outside of wordpress, to redirect all non-www requests for your domain to the www.

  13. hlanggo
    Member
    Posted 1 year ago #

    I got the dreaded never-ending redirect error.

  14. hlanggo
    Member
    Posted 1 year ago #

    Just an update.

    To solve the no-www to yes-www problem, I decided to redo the multisite installation. Did so about 2 weeks ago, but I forgot to mention about it here.

    Doing (below):

    1. Edit wp-config.php to ADD the www to the domain.
    2. Edit database to change all "domain.com" to "www.domain.com".

    -did not work.

Topic Closed

This topic has been closed to new replies.

About this Topic