tannercampbell
Member
Posted 2 years ago #
I don't want to reveal the site because it's not supposed to launch until March 30th and my client absolutely does NOT want it out before that, it's high profile.
I've never run across this problem, and I've been using WordPress for about 5 years.
if I type in http://WWW.address.com/wordpress I get the INCORRECT landing page. But if I type http://address.com/wordpress I get the CORRECT landing page. I'm pretty handy at troubleshooting WP but this is such a strange problem I don't know where to start -- maybe one of you WP-Warriors with more experience than I have, have seen this before -- suggestions?
Thanks,
Tanner Campbell
That deals with the .htaccess and maybe the hosting.
Go to the "Settings > General" and add the www to the "wordpress url" and "blog url". Make sure you enter them properly, otherwise the site will stop working.
After that see what happens.
What is your hosting company and type of server?
This sounds more like a hosting configuration issue than a WordPress issue. WordPress does not determine whether or not the www host is the same as the non-www host address, this is determined by DNS and virtual hosting config.
Does the DNS for the two addresses resolve to the same place? What is the site config for the two addresses?
tannercampbell
Member
Posted 2 years ago #
Hfort -- that sounds like a scary scenario :) I've made a change before that effed an entire installation ... is there a less precarious solution? The client's hosting company is http://schostpro.com server stats:
Linux OS
Apache Web Server
DirectAdmin
Mr. Mist: DNSs (ns1.schostpro.com / ns2.schostpro.com) both (as far as I know) point to the same domain.
tannercampbell
Member
Posted 2 years ago #
UPDATE:
Hfort: I changed the settings so that both read: http://sitename.com/wordpress and I faced that same issue then I changed both to http://www.sitename.com/wordpress and the problems seems to be solved. I appreciate your expertise Hfort, it was truly helpful. I'll look this thread up when the site launches and send you a link so you can have a look at it.
I am glad you sorted it out. I have that problem all the time and that is the way it worked for me.
By the way. If any time your enter the url incorrectly and you can no longer access the site. Just add this code to the functions.php using the FTP.
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');
and you will be able to login again and correct the URLs.