humix
How to add 301 Redirect from non www to www for Wordpress
112 views · Feb 16, 2022
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:
example.com
www.example.com
Redundant hostnames are counted as separate rows in reports, so hits that are going to the same page on your site from different hostnames will be split into multiple rows. With data split across multiple rows, traffic to specific pages will appear lower than it actually is.

To avoid this problem, consider setting up a 301 redirect from one of your redundant hostnames to the other, or create a search-and-replace filter that strips "www." from hostnames.

Google Tag Assistant Recordings can help you verify that your redirect is setup correctly, or that your filter is working as intended.

If you found the video tutorial useful, spread the word by sharing this video.

------------------------------------------------------------------------------------------------
πŸ†‚πŸ†„πŸ…±πŸ†‚πŸ…²πŸ†πŸ…ΈπŸ…±πŸ…΄ to πŸ†ƒπŸ†„πŸ†ƒπŸ…»πŸ…ΈπŸ…½πŸ…ΊπŸ†‚ channel if you like the content.

πŸ†‚πŸ†„πŸ…±πŸ†‚πŸ…²πŸ†πŸ…ΈπŸ…±πŸ…΄: http://bit.ly/2Y0ZunB

Share this video with your friends and colleagues and let them know you are upto date with latest tech-trends

Follow us: 
Facebook: http://bit.ly/2Djmd6l
Twitter: http://bit.ly/2Ol9ZQT
Instagram: http://bit.ly/2pV4cYY

Support: 
(Appreciate your Generosity: πŸ’Έ)
PayPal: http://bit.ly/2NZgVma 
ETH: 0x0689Ecd747d6F4eA9CE491aD0b1734fEe62b2229
see more

Comments

Latest Videos
place
7:48
play
How to Create a CentOS 7.5 Virtual Machine on Azure
How to Create a CentOS 7.5 Vir...
How to Create a CentOS 7.5 Virtual Machine on Azure
2 views
place
5:55
play
Installing CentOS 8.1 OS GUI on Oracle VM Virtualbox on Wind...
Installing CentOS 8.1 OS GUI o...
Installing CentOS 8.1 OS GUI on Oracle VM Virtualbox on Windows 10 OS
750 views
place
14:43
play
How to manage Python projects using Virtualenv
How to manage Python projects ...
How to manage Python projects using Virtualenv
325 views
place
5:22
play
Installing Postgres SQL on Windows PC
Installing Postgres SQL on Win...
Installing Postgres SQL on Windows PC
721 views
place
21:03
play
How to Create ASP.NET Core 3.0 React SPA with Secure Members...
How to Create ASP.NET Core 3.0...
How to Create ASP.NET Core 3.0 React SPA with Secure Membership using MySQL Database in 20 Minutes
197 views
place
6:03
play
Setup Visual Studio Code for Python Development
Setup Visual Studio Code for P...
Setup Visual Studio Code for Python Development
905 views
place
6:37
play
Deploy FastAPI on Heroku in just 6 minutes
Deploy FastAPI on Heroku in ju...
Deploy FastAPI on Heroku in just 6 minutes
3K views
place
16:27
play
How to Configure ASP.NET Core 3.1 Angular SPA, Identity Serv...
How to Configure ASP.NET Core ...
How to Configure ASP.NET Core 3.1 Angular SPA, Identity Server 4 (Authentication) with PostgreSQL
139 views
place
24:40
play
Hosting Wordpress On Azure (Step by Step Tutorial)
Hosting Wordpress On Azure (St...
Hosting Wordpress On Azure (Step by Step Tutorial)
1K views
place
9:26
play
Debugging Flask App with Visual Studio Code IDE
Debugging Flask App with Visua...
Debugging Flask App with Visual Studio Code IDE
470 views