Blank Video Poster

How to add 301 Redirect from non www to www for Wordpress

Feb 16, 2022

tutlinks.com

In this tutorial, you will learn how to add a 301 redirect to your wordpress website. Read this tutorial here http://bit.ly/38mgZUZ It is a best practice to take backup before you edit the .htaccess file. Do it only if you know what you are doing or consult a software engineer. Copy the following script and paste it in the beginning of .htaccess file. # BEGIN 301 redirect from example.com to www.example.com RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # END 301 redirect from example.com to www.example.com This video addresses the Redundant hostnames warning from google analytics that has following message: Property example.com is receiving data from redundant hostnames. Some of the redundant hostnames are:
#Software #Reference #Web Stats & Analytics