PDA

View Full Version : Wordpress change domain URL



ZMo
12-21-2009, 08:23 AM
Hi,

I've created a http://www.domain.com wordpress, and changed the URL in http://beta.domain.com for working on it up to the site becomes ready (and back www.domain.com).

To create http://beta.domain.com i've used "Subdomain" from cPanel. Then, i ve updated wordpress location by "My install/Advanced Options".

The problem is the site appears without any css style, and every link you follow in the page return "not found". Without particoular difficoult (a friend of mine done for me) i've discovered, every links on "beta.domain.com" calls "www.domain.com" URL.

To solve this, i've opened the wordpress mysql database by phpmyadmin, query for `wp_options` and changed "siteurl" from www.domain.com to beta.domain.com.

Is this a bug in the feature "subdomains" in the wordpress feature?
Is there any other way to accomplish that?

Thanks
Regard

bh_WP_fan
12-24-2009, 09:04 PM
That's just the way WordPress works. It uses a re-write to whatever URL is setup for it. Anything else will redirect and if the location being redirected to isn't the same as the location WordPress is using, the file references won't work, including the css. See this link for an easy way to change this: http://www.tamba2.org.uk/wordpress/site-url/