Forum Moderators: open
Any wordpress guru's out there that can help.
I built a wordpress blog section for a client.
I loaded wordpress and developed the site for a domain, say www.mysite01.com but they are now pointing their real website, say www.mysite02.com to the website I build.
Thats fine but as soon as you click on the link to the blog section of the website the URL in the address bar changes from the pointed www.mysite02.com and changes to www.mysite01.com.
All the wordpress files are loaded into the www.mysite01.com so is there any way to keep the top address bar saying www.mysite02.com so the user doesnt think he has left the original website.
I know on the dashborad in wordpress in the settings section I think there are 2 places where you put the website URL's, can any be changed ect?
Any ideas?
cheers for any response
GB
To deal with how those URLs resolve, you need to use mod_rewrite.
But I don't quite understand. If you want the WP part of the site to be on mysite02.com, why don't you just put it on that server? That would simplify everything.
Thanks for getting back.
They dont have a host for www.mysite02.com, so it's hosted on www.mysite01.com and a re-direct for the domain www.mysite02.com is set to point to the other.
When on the website the URL reads www.mysite01.com until you click to view the wordpress installed news section then the URL changes to www.mysite02.com.
Cheers
Geoff
Like londrum says, look at the wp-options table and see if you can find the offending setting. Otherwise, do a data dump and search for it.
Also, look for relative URLs. If you end up on mysite02.com for any reason once and have any relative URLs, obviously those will resolve to whatever domain you're on.
I have seen those settings on the dashboard but didnt want to alter either of them for not knowing which one, or if they will cause problems, ie lose my clients blog section.
There are 2 settings, called:
WordPress address (URL) (in here I have [mysite01.com...]
Blog address (URL) (in here I also have [mysite01.com...]
On the Blog address box, after it says this:
(Enter the address here if you want your blog homepage to be different from the directory you installed WordPress.)
I need to change one of them to [mysite02.com...] but which one and will it mess anything up?
Thanks for all your help.
GB