Forum Moderators: open

Message Too Old, No Replies

Wordpress Links Point to Wrong Domain

         

geoffb

7:06 pm on Dec 2, 2009 (gmt 0)

10+ Year Member



Hi all,

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

ergophobe

8:00 pm on Dec 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The dashboard settings will change which URL appears in auto-generated links (that is, navigation, tags, etc).

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.

londrum

8:09 pm on Dec 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



there's probably a field in the database somewhere that mentions the other url, back from when you installed it.
you could use phpmyadmin to find it pretty easy, and then just type over the new one.

geoffb

8:45 pm on Dec 2, 2009 (gmt 0)

10+ Year Member



ergophobe,

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

ergophobe

9:49 pm on Dec 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hmmm.... you should be able to change that from the Dashboard.

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.

geoffb

9:28 am on Dec 3, 2009 (gmt 0)

10+ Year Member



Hi ergophobe,

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

ergophobe

4:58 pm on Dec 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Assuming that your Wordpress files are actually in the /news directory, you do not need to change the Blog Address setting, just the Wordpress address.

When you change the WP address, the Blog address setting should change to match. If it doesn't, just make it match.