Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've tried to switch a website from to

When I go to, I can see what appears to be a strictly HTML version of the site(no CSS, no php). takes me to Page Not Found with a URL using the old domain.

What could be causing the problem? What steps can I take to remedy the problem?

share|improve this question

1 Answer 1

The PHP is loading at the new domain, or else you would see no HTML. The issue seems to be that your WordPress Address (in Settings -> General) is not set for your new domain.

If you have access to the DB, look for the option with the name siteurl in wp_options. The value should be your new domain.

Quick and dirty solution: add this to wp-config.php:

define('WP_SITEURL', '');
share|improve this answer
I kind of suspected the cause of the problem would be along these lines. My trouble now is- I can't gain access to the WP backend; when I try to login via /wp-login.php I recieve a Page Not Found error(as described above). Trying to login via FTP(tried with both old AND new domains) resulted in an 'authentication fail' error for both. Any ideas? – user1255049 Apr 18 '13 at 14:50
FTP connection issues won't be WordPress related. You'll have to consult your hosting company on that one. – vancoder Apr 18 '13 at 16:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.