Notice: Trying to get property of non-object in /home/wpcmsnin/ on line 25

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 url.  Also looks for the non-www of 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.



Posted on

February 13, 2019

Submit a Comment

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