ok..
these are the urls
blog.iklerik.com
blog.incredi.us
the blog is hosted at http://www.iklerik.com/blog
both urls refer to the same blog folder.. the blog url that i set in the wordpress options is blog.incredi.us.
now blog.iklerik.com doesnt work.
thats what i’ve added to the wp_config.php
$hostname = $_SERVER[‘SERVER_NAME’];
$hostname = str_replace(‘www.’, ”, $hostname);
if ($hostname == ‘blog.iklerik.com’) {
define(‘WP_SITEURL’, ‘blog.iklerik.com’);
define(‘WP_HOME’, ‘blog.iklerik.com’);
}
ok i think its almost working, now the links are changed but to blog.hiswebsite.com/blog.hiswebsite.com/….
whats wrong here?? why is it doubled?