Current time: 04-20-2014, 01:15 AM Hello There, Guest! (LoginRegister)

Post Reply 
Broken site after migrating sub-domain to full domain
02-08-2012, 02:54 PM
Post: #1
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 blank.com to be fully hosted. then via ftp or shell rename the folder blank.com to temp.blank.com and rename blank.blank.com to blank.com. 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 blank.com since i'm assuming the information would be blank.blank.com. you will not be able to access your wp information until you finish renaming the directory once you do it.

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:
require('./wp-blog-header.php');
to the following, using your directory name for the WordPress core files:
require('./wordpress/wp-blog-header.php');
Login to your site. It should still be http://example.com/wordpress/wp-admin/

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.

OnlineLulu
Find all posts by this user
Quote this message in a reply
02-08-2012, 03:17 PM
Post: #2
RE: Broken site after migrating sub-domain to full domain
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.

http://www.marciesgifts.com
PM for manual CMS(drupal,joomla,etc)/Blog(WP,MT,etc
)/forum(phpbb,smf,etc) install/transfer $75.
$25 Off w/promo code SPRINKLES
Visit this user's website Find all posts by this user
Quote this message in a reply
02-08-2012, 06:00 PM
Post: #3
RE: Broken site after migrating sub-domain to full domain
(02-08-2012 03:17 PM)Ryo-ohki Wrote:  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?

Lulu
Find all posts by this user
Quote this message in a reply
02-08-2012, 06:06 PM (This post was last modified: 02-08-2012 06:08 PM by Ryo-ohki.)
Post: #4
RE: Broken site after migrating sub-domain to full domain
i meant undo what you did to the index.php file sorry because the situation you had was dealing with a sub-domain (sub.domain.com) and not a sub-directory (domain.com/sub), 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 http://discussion.dreamhost.com/thread-131591.html .

http://www.marciesgifts.com
PM for manual CMS(drupal,joomla,etc)/Blog(WP,MT,etc
)/forum(phpbb,smf,etc) install/transfer $75.
$25 Off w/promo code SPRINKLES
Visit this user's website Find all posts by this user
Quote this message in a reply
02-09-2012, 11:10 AM
Post: #5
RE: Broken site after migrating sub-domain to full domain
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.

Lulu
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: