Notice: Trying to get property of non-object in /home/wpcmsnin/snippets.wpcms.ninja/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-utils.php 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 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.

 

Skills

Posted on

February 13, 2019

Submit a Comment

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