So what might you need to do in the htaccess file?
How about forcing the www. in your url?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http:
Or get rid of the www altogether?
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http:
Or to force the use of https://
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https:
Or maybe forcing a trailing slash on urls
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ https:
Changing Domains?
Htaccess can be useful when you move your site to a new domain. Put this in the old site’s htaccess and all traffic to your old site will arrive at your new site index page:
But what if you are moving an existing Jamroom to a new domain and need to keep the same page and url structures?
RewriteCond %{http_host} !^www.oldsite.com [NC]
RewriteRule ^(.*)$ http: