6. Configuration if using www subdomain


By default the website will be installed not using www subdomain (since version 1.7.1).

If you wish to install the website using www subdomain, then edit .htaccess file in the root directory.
Check out, that following rows are not commented out (i.e. that there are no "# " at start of these rows):
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

If you also wish, that website can be accessed only through www subdomain, then comment out following lines, like this:
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]

If you wish, that the website can be accessed with and without www subdomain (which is not suggested because of SEO reasons), then uncomment all these previously mentioned files.
In this case you should also keep in mind to do one of the following:
1. Either install the website twice with "www." in URL and without it in URL.
2. Alternatively install the website only once without "www." in URL. After that duplicate in sites directory the configuration folder of this newly installed website, where the name difference of such duplicated folder name is "www." in front of domain name part.

Previous: 5. Prepare the database | Next: 7. Install the website
Install an Allmice CMS website
1. Download compressed Allmice CMS
2. Extract the file
3. Prepare web directory - 4 options
4. Change file access permissions
5. Prepare the database
6. Configuration if using www subdomain
7. Install the website