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

Thread: 

Redirecting non-www to www with .htaccess?

Ads
make money online
zorro Offline referral

Posts: 126
Joined: Mar 2014
Reputation: 0

#1
Member
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,514
Joined: May 2013
Reputation: 107

#2
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:

Code:
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

#3
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

#4
Member
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)