![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Website Design Discuss web design |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | Redirection
I'm very slow out of the blocks on this one but want to start redirecting my non www. domain to my www. domain (i.e. mywidgets.co.uk to www.mywidgets.co.uk).... ....but what one do you link to the other? Is it based on what Google shows in your SERP as being the main - or which one sends most visitors to your site from analytics tools - or is there another way of working this out ?? |
| |
| | #2 (permalink) |
![]() |
If you want to create one url in the serps (addressing any duplicate pages / canonical issues from the non www.) And also ensure the value from any links going to the non www. Go to your sites home page of http://www.mywidgets.co.uk/ you need to create a 301 redirect. First thing I would do is speak to your host and ask them if the server can handle a 301 redirect via a htaccess file (ensuring the RewriteEngine is switch on etc). If you site is hosted on a linux server open notepad and create a file called .htaccess the below code should do the trick (replacing the mywidgets.co.uk with your site name). Code: Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mywidgets\.co.uk [NC]
RewriteRule (.*) http://www.mywidgets.co.uk/$1 [R=301,L] Code: Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^mywidgets\.co.uk [NC]
RewriteRule (.*) http://www.mywidgets.co.uk/$1 [R=301,L] I would test this on a test site on the same server first not your main site once the .htaccess file has been added, clear all history in your browser and refresh the page etc. If you sites files are built in html your might want to also 301 redirect the index.html pages i.e http://www.mywidgets.co.uk/index.html to http://www.mywidgets.co.uk/ Add the below to the above to 301 redirect all files ending in index.html to / Code: RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.mywidgets.co.uk/$1 [R=301,L] try http://www.rexswain.com/httpview.html or http://web-sniffer.net/ Last edited by js1; 12-01-2012 at 04:04:15 PM. |
| |
| | #4 (permalink) | |
![]() | Quote:
Is the non www. or the www. indexed in google? Do you have a google webmaster tools account what does that say? have you set what url you want there? Have added a xml site map there with the correct urls? How does you site link to its pages? Last edited by js1; 12-01-2012 at 05:17:23 PM. | |
| |
| | #5 (permalink) |
![]() |
I don't have all the answers as of now but I understand from your questions the relevance should be based on incoming links and Google's ranking URL - treat that as main and redirect the other. I imagined this would be the case but wanted to make sure there was nothing crucial I'd missed Thanks again mate |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Domain Name Redirection - Web Hosting and Domain Name News (blog) | RSS | Domain Name News | 0 | 31-01-2010 12:59:04 PM |
| URL Redirection Problem | rch1234 | Services Wanted | 5 | 21-06-2007 07:56:21 AM |
| DNS Software delivers provider-controlled error redirection. - ThomasNet Industrial News Room (press release) | RSS | Domain Name News | 0 | 07-06-2007 02:59:03 PM |
| Increase Your Website Traffic With Expired Domains And Redirection ... - Business Portal 24 (press release) | RSS | Domain Name News | 0 | 04-04-2007 12:59:08 PM |