09-17-2015, 10:03 PM | #1 |
Registered User
Join Date: Aug 2015
Posts: 434
|
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.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
09-18-2015, 08:25 AM | #2 |
Registered User
Join Date: Sep 2015
Posts: 11
|
You can forward your page to a different page by inserting the following piece of code in your <head> </head> tag:
<meta http-equiv="refresh" content="0; url=http://www.example.com/"> "content" specifies how many seconds will elapse before you are forwarded to the other page..
__________________
Join Master Affiliate League And Earn Money
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
09-24-2015, 11:42 AM | #3 |
Registered User
Join Date: Jul 2014
Location: Athens, Greece
Posts: 461
|
At .htaccess file, insert these lines
RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite\.com$ RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
09-27-2015, 06:38 PM | #4 |
Registered User
Join Date: Sep 2015
Posts: 7
|
RewriteCond %{HTTP_HOST} !^www\.YourSite\.com$ [NC]
RewriteRule ^(.*)$ http://www.YourSite.com/$1 [R=301,L]
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
10-07-2015, 10:10 AM | #5 |
Registered User
Join Date: May 2015
Posts: 61
|
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
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about 301 Permanent Redirect | JACKADEN | Search Engine Optimization | 7 | 11-28-2019 01:07 AM |
301 redirect is better or 302 redirect . | rummy26 | Search Engine Optimization | 13 | 12-17-2014 05:14 AM |
Redirect the website and want to know about backlinks | sahithya | Search Engine Optimization | 0 | 11-17-2014 12:06 AM |
301 redirect - the right way | sinicline | 2 | 09-27-2013 11:32 PM | |
301 Redirect as a Way Past the Sandbox | ncjbhd | 0 | 10-19-2011 08:41 PM |