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?
Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.
Redirecting non-www to www with .htaccess?
It's quite important for SEO you right about that. Simply open or create a new htaccess file and add this code to it:
Remember that this only works of Apache servers!
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Remember that this only works of Apache servers!
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.
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.
Find xamarin Developers | Car Rental System | Xamarin Cross Platform Application Development| | custom software development houston
Go for 301 redirection in htaccess file. This will help you to fix www redirection issue & will not cause you any duplication problems further.
Similar Topics:
- What is .htaccess file?
- How to protect directory .htaccess
- htaccess 301 redirect?
- htaccess 301 redirect?
- Enable GZIP comression .htaccess?
- How to Password Protect a Directory with .htaccess?
- How to Leverage Browser Caching .htaccess
- Redirect all traffic to a new site with Apache .htaccess
- htaccess 301 redirect domain to new domain
- Redirec non-www to www with .htaccess
User(s) browsing this thread: 1 Guest(s)