Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.


Redirecting non-www to www with .htaccess?

zorro Offline referral

Posts: 126
Joined: Mar 2014
Reputation: 0

I am able to access my website from both www and non www URL I know that this will cause duplicate issue with the SEO how to 301 redirect it?
marcus_avrelius Offline referral

Posts: 2,519
Joined: May 2013
Reputation: 103

Support Team
It's quite important for SEO you right about that. Simply open or create a new htaccess file and add this code to it:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Remember that this only works of Apache servers!
damponting44 Offline referral

Posts: 537
Joined: Oct 2016
Reputation: 0

Senior Member
How on compel www alternately non-www for your. Htaccess document in cPanel.
1. Log under your cPanel. Â. Discover the Files class and click on the document chief famous.
2. Click settings In the highest point correct corner.
3. Decide the archive root to the Web-domain you would attempting for and a chance to be beyond any doubt those checkbox next should indicate concealed Files may be checked.
johnray Offline referral

Posts: 161
Joined: Jul 2017
Reputation: 0

Go for 301 redirection in htaccess file. This will help you to fix www redirection issue & will not cause you any duplication problems further.
Dodge ECM, Ford PCM, Ford ECU Repair Company

User(s) browsing this thread: 1 Guest(s)