Do you want to move your Wordpress weblog with a different domain name ? But don’t want to loose your readers. So today I’ll be teaching you a simple trick which will redirect your visitor from your old blog’s posts to their new ones.
Demo: Try to visit http://www.thila.ropage.com/index.php/2006/05/ you will be automatically redirected to http://www.tech-buzz.net/index.php/2006/05/
Ingredients: Text Editor (Notepad will work), FTP Manger.
- Move your entire blog to your new host. Podz has a nice tutorial on Moving Wordpress Blog
- Create a file named index.php and paste the code given below:
<?php
header(‘HTTP/1.1 301 Moved Permanently’);
header(‘Location: http://www.newhost.com’ . $_SERVER['REQUEST_URI']);
die(“We’ve moved! Click here please: <a href=‘http://www.newhost.com” . $_SERVER['REQUEST_URI'] . “‘>http://www.newhost.com” . $_SERVER['REQUEST_URI'] . “</a>”);
?>
-
Upload index.php to your old blog’s root directory (Ex: http://www.oldhost.com/blog) and replace the existing file
-
Done !!
Note: Don’t forget to change http://www.newhost.com to your new blog’s URL


Discussion
Comments for “How to move your Wordpress Blog without loosing readers”