Thursday 5 September 2013

Making wordpress links relative

Add the following lines in the beginning of functions.php ( of your theme):


update_option('siteurl','http://' . $_SERVER['SERVER_ADDR']);
update_option('home','http://' . $_SERVER['SERVER_ADDR']);


More info:

http://codex.wordpress.org/Changing_The_Site_URL

No comments:

Post a Comment