CMSMS 1.9.3
I've just noticed that when I type an address of a site done with CMSMS in the address bar, it starts off with http://www.site.com/ then as I click on the various pages in the navigation, the "www" is no longer there.
Does this matter?
Why no "www" in url?
-
- Forum Members
- Posts: 103
- Joined: Fri Nov 28, 2008 11:26 am
Re: Why no "www" in url?
It doesn't particularly matter if you have it or not, but the control for this is in your base URL in your config.php file in the root of your website folder. lines 83-86 show this:jasnick wrote:CMSMS 1.9.3
I've just noticed that when I type an address of a site done with CMSMS in the address bar, it starts off with http://www.site.com/ then as I click on the various pages in the navigation, the "www" is no longer there.
Does this matter?
So just change that root URL to whatever you need it to be.#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.yourwebsite.com';

Re: Why no "www" in url?
If you don't like that, or you have multiple domains pointing to the same install and you don't want this, I suppose you could set:
..so that it will take the URL of whatever you gave it.
I'm a supporter of http://no-www.org/, so I add something to my .htaccess to remove all www's completely.
Code: Select all
$config['root_url'] = 'http://' . $_SERVER['SERVER_NAME'];
I'm a supporter of http://no-www.org/, so I add something to my .htaccess to remove all www's completely.
Re: Why no "www" in url?
Thanks, beherenow_uk, for the explanation. I will have a look at that.
Wishbone,
at first I thought that was a joke site name....
My pre-CMSMS sites all have the emails set up to allow www and no-www but I didn't know it could apply to domain addresses as well.
Wishbone,
at first I thought that was a joke site name....

My pre-CMSMS sites all have the emails set up to allow www and no-www but I didn't know it could apply to domain addresses as well.