Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

301 Permanent Redirect On A Blog

Steps involved in redirecting WP self-hosted blogs



11:50 am on Mar 6, 2009 (gmt 0)

5+ Year Member

I have decided to move my old blog to a new domain using .HTACCESS 301 Permanent redirect. My server is Apache server.

Say for example redirection from www.OldBlog.com to www.NewBlog.com

www.OldBlog.com is self-hosted and www.NewBlog.com is also self-hosted.

These are the steps I am going to take:

1. I buy a new domain.

2. Install WP in the new domain from control panel or download and install.

3. Download a backup of all posts from my old domain by logging in my WP account and "exporting".

4. Now I log in my new domain WP account and upload the backup by "importing".

5. I should see all my posts and comments in the new domain.

6. Write the 301 redirect in the .HTACCESS file in the old domain to point to the new domain.

My questions:

1.Are the steps written above correct?

2.What about the categories? Will the backup itself create the categories OR I need to create categories with the same name before importing the backup in the new blog.

3.Am I missing any other point?

Please help.


10:19 am on Mar 9, 2009 (gmt 0)

5+ Year Member

Is no one there to answer this?


3:09 pm on Mar 9, 2009 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

The steps look sound to me. It would be even easier if you had both domains running on the same box. You could then set up a short, simple virtual host container for the old domain which does permanent redirection to any link requests to the new domain. The new domain would then be your *old* virtual host container. Change the appropriate directives, make the necessary mods to your WP install ... you get the point.


8:58 pm on Mar 11, 2009 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Nothing really to add to the above comments. I concur that having both domains pointing at the same hosting space would simplify things somewhat. In that case, the redirect is absolutely crucial. Make sure you cater for both www and non-www on both.

Featured Threads

Hot Threads This Week

Hot Threads This Month