Force all urls to be relative
Posted: Fri Oct 27, 2006 1:37 am
Hi there,
I'm making a site for both Australia and New Zealand. For users browsing to www.site.com.au I want the .com.au to persist throughout their whole time at the site, and for users browsing to www.site.co.nz I want the .co.nz to persist. The only way I can think to do this is to leave the document root blank. That is, in config.php:
$config['root_url'] = '';
This removes the full site url from all links. I haven't seen any problems with doing with so far, and I can't think of any real advantage of having the full url there (unless, perhaps for SEO reasons).
Can anyone enlighten me as to whether what I've done will cause problems at some point or if it is a good/bad idea?
Thanks
I'm making a site for both Australia and New Zealand. For users browsing to www.site.com.au I want the .com.au to persist throughout their whole time at the site, and for users browsing to www.site.co.nz I want the .co.nz to persist. The only way I can think to do this is to leave the document root blank. That is, in config.php:
$config['root_url'] = '';
This removes the full site url from all links. I haven't seen any problems with doing with so far, and I can't think of any real advantage of having the full url there (unless, perhaps for SEO reasons).
Can anyone enlighten me as to whether what I've done will cause problems at some point or if it is a good/bad idea?
Thanks