HTTP and HTTPS w/ www Redirect via .htaccess

, ,

So every now and then I run into an issue where I need to setup redirects for addon domains.  Here is one method that has always worked for me.  Adding it in this way allows for https and non http and also handles non-www and www to redirect to the www.newdomain.com url.  Also looks for the non-www of newdomain.com and redirects to www.

So if you don't need to setup domains to forward when an addon domain is used you can use the following as it is based off just HTTPS.

 

Submit a Comment

Your email address will not be published. Required fields are marked *