Broken site after migrating sub-domain to full domain


Hi –

I had two domains, one full and one sub. I had websites up and running on each of them, planning to replace the (old) full with the (new, WP-generated) sub-domain, which I did, but since then I’ve lost all WP formatting and can’t access my WP dashboard.

To do the migration, I followed this advice, which looked right to me:

[quote]RE: Migrating a website from a sub-domain to a full domain
so… you say you have built a full website… is it with wordpress? if so all you have to do is go to manage domains add to be fully hosted. then via ftp or shell rename the folder to and rename to before you do that though be sure to log into your wp admin and change general setting site url and the other one forget what its called to since i’m assuming the information would be you will not be able to access your wp information until you finish renaming the directory once you do it. [/quote]

The only thing I did differently was that, instead of going into the general settings to change the site url and the home url, I had to do that in wp-config, because I’d already changed the names there due to previous problems.

Then, to put Wordpress in its own directory, I followed this advice:

[quote]Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address). The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you’ll have a web.config rather than a .htaccess file in your WordPress directory. As stated above, copy (don’t move) the index.php file to your root directory, but MOVE (DON’T COPY) the web.config file to your root directory. [Note: I’m not running Windows.]
Open your root directory’s index.php file in a text editor
Change the following and save the file. Change the line that says:
to the following, using your directory name for the WordPress core files:
Login to your site. It should still be[/quote]

I went to my site. Now it has no WP formatting, and also, I can’t get into my WP dashboard.

Anybody have any ideas as to what went wrong here?

Thanks for your help.



Since you already had wp installed in a sub-domain the only thing you needed to do was rename folders and update the site and wordpress url. You made things too complicated. Undo what you did to the htaccess file as changing it was not necessary. Those instructions were for people who had wanted to keep wp installed in a sub-folder but wanted the site displayed at the root.


But I wanted Wordpress to be in its own directory. Do you really think just removing the htaccess file would restore the site?



i meant undo what you did to the index.php file sorry because the situation you had was dealing with a sub-domain ( and not a sub-directory (, which is what the instructions were intended for. if you do want wp to be in a sub-directory (not to confuse it with a sub-domain) instead of the root the instructions i had were pretty self-explanatory in this thread .


Ryo-ohki, thanks for your help. In the end Dreamhost Support re-installed WordPress for me. Evidently one or several files were corrupted.

Thank you, DreamHost.