jonathandsimmons
Member
Posted 1 year ago #
We created a wordpress mu network @ http://example.com
As we begin to setup the sub sites they we realized that are being created at http://www.example.com/user1.
What this means is that if someone type example.com/user1 they get a 404 but if they type http://www.example.com/user1 the page load as it should.
We've tried changing the changing the settings in domain manager to add www. to the url. (i.e. if you type http://example.com it will make it http://www.example.com) However this just causes a redirect loop.
Anyone have any ideas. my one thought it that we should have told the original domain to be http://www.example.com rather than http://example.com. However I NEVER imaged that would be a problem.
I had the same thing happen. What you need to do is this:
1. go to the domain mapping portion of mu install
2. example.com should be added here as the primary domain pointing to the correct site id.
3. create another domain mapping record http://www.example.com and set it as a secondary domain record.
In fact, I used this to redirect example.com, http://www.example.com and http://www.example.net -- all point to the same thing.
Hope this helps.
If you're trying to map the main domain it will not work.
jonathandsimmons
Member
Posted 1 year ago #
I was able to fix this. I went into my Domain Cpanel and told it to add WWW before any url.
Then we changed the web address in the msql database and changed the site URL from http://youcansend.me to http://www.example.com
@bbruno I'm sure that would have worked but now that you it's fixed I ain't touchin it!
Thanks for the help.
manansaini
Member
Posted 1 year ago #
Hey jonathands,
can you please tell me how you did in cpanel, I also tried redirecting domain in cpanel but not successful.
My site links works only with www and without www it redirect to homepage forcely.
jonathandsimmons
Member
Posted 1 year ago #
I was incorrect in stating that it was my cpanel. It's actually cpanel/dns/redirect. Depending on your hosting provider it may be elsewhere. Ours is dreamhost for example doesn't do this in the dns section.
Either was when you find this in your hosting admin you can specify if the domain works with, without, or both.
A couple of examples.
this is what ours looked like: http://cl.ly/50xz
this is what one of my personal ones with a basic cpanel looks like
http://cl.ly/51TO
jonathandsimmons
Member
Posted 1 year ago #
Also I just realized in the mysql database I changed the entry under site url and home (home was on page two)