Changing WordPress Domain Name


I have just changed the domain name of my wordpress and it stopped working…
After looking up all over I found the answer here

To make it easier for you, here is what you need to do in order to make your wordpress installation work on the new domain:

1. Add these 2 lines to wp-config.php
define(‘WP_HOME’,'www.yourdomain.com/blog’);
define(‘WP_SITEURL’,'www.yourdomain.com/blog’);

2. Add these 2 lines to functions.php (located in your theme directory)
update_option(‘siteurl’,'www.yourdomain.com/blog);
update_option(‘home’,'http://www.yourdomain.com/blog’);
That’s all!

This entry was posted in wordpress and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>