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
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.”
You don’t remove the http off it… Stupid auto-editing URL feature of the forum.
http://www.domain.com becomes http://domain.com
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?
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.
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”?
Haven’t a clue 🙂 I don’t use www to begin with!
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.
@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?
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.
I got the dreaded never-ending redirect error.
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.