define('BASE_URL', 'http://www.mysite.com'); define('DIR_REL', ''); MISSING2 users found helpful
I have to move a site from a directory into the main root of the website - which is something I have done before, however when I check the config/site.php the lines:
are not there, the version I am running is 5.5.1?
Please help as the site needs to be moved this weekend..
If they're there they will work as they always did, if they're not there your site will guess the values, makes it easier when moving sites.
thanks - thought I was being really dim lol.
If I don't define BASE_URL and DIR_REL in the site.php, my site is accessible via 2 URLs:
This isn't good for SEO reasons (duplicate content).
But if I add the two lines in site.php, everything works fine:
http://mydomain.com is redirected tohttp://www.mydomain.com
So, wouldn't it be better to include these lines by default?