How to www redirect URL?
want to know how to www redirect my website URL. Issue is when i type www (dot) mywebsite( dot )com and mywebsite(.)com they opens with different url format as they typed.
|
You can forward your page to a different page by inserting the following piece of code in your tag:
"content" specifies how many seconds will elapse before you are forwarded to the other page.. |
At .htaccess file, insert these lines
RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite\.com$ RewriteRule (.*) http://www.mysite.com/$1 [R=301,L] |
RewriteCond %{HTTP_HOST} !^www\.YourSite\.com$ [NC]
RewriteRule ^(.*)$ http://www.YourSite.com/$1 [R=301,L] |
Go to cpanel ->Find Domain tab click on Redirect link ->now open a input box -> enter your site name
Ex : www.yourdomain.com then save it . you dont need to rewrite a .htaccess file :neer_neer |
All times are GMT -7. The time now is 01:19 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.