![]() |
|
| 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 |
| New Domainers If you are new to domaining or the UK domain market please post your questions here |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | De-indexed site - a cautionary tale
I recently moved a site onto a free host. No point in paying for hosting - four pages and the pics are linked - but now it has been de-indexed by Google. Fishing around in Webmasters and Analytics help, I found the reason is in the way that Google indexes sites in the first place - if the site is indexed as htttp:// www. mydomain .com initially, and the host has the preference set to htttp:// mydomain .com , the indexing gets lost! Same thing happens if the preferences are the other way round. So - how can I check the way Google has indexed a site before I move it next time? Also, how do I know which is my host's preferred setting? Most do not bother you with the question when you are setting up an account. I do remember being asked once, and thinking "what does it matter"? Now I know why it matters ... |
| |
| | #2 (permalink) |
![]() |
Use htaccess settings to set preference My sites are accessible by both, and my servers have no preference. As or checking which is indexed, google site:dom.ext to see if you have www. or not.
__________________ Browse: |
| |
| | #4 (permalink) |
![]() |
__________________ Browse: |
| |
| | #5 (permalink) |
| Member | For those of you that don't know, this is the code to use to make the non www version of your site redirect to the version with the www. Simply add the following to your .htaccess file and hey presto! Code: # 301 redirect non-www. to www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.co.uk [NC]
RewriteRule ^(.*)$ http://www.yourdomain.co.uk/$1 [L,R=301] Code: # 301 index.php to /
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3, 9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [L,R=301] Last edited by squarerobot; 17-06-2009 at 02:54:41 PM. Reason: fixed the missing bracket |
| |
| | #6 (permalink) |
![]() |
I think you missed a bracket :P I keep missing braces in PHP lately, not really done that since I moved from VB to C years ago but lately I keep doing it :P
__________________ Browse: |
| |
| | #9 (permalink) |
| Administrator |
Put it in your .htaccess file (which should be in the root of your domain)
__________________ Domain Appraisal | Domain Escrow Service | UK Appliances | Surrey Deals | Domain Auctions from Acorn Domains Subscribe to our Domains For Sale newsletter :: Submit a Domain For Sale to our newsletter :: Domains For Sale |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Advertising my service: I develop mini sites. | gameboy | Services Wanted | 1 | 27-05-2009 10:13:03 AM |
| Site Indexed & Ranked on google within 24 hours ! | FreetimersInter | General Board | 0 | 01-08-2007 08:01:16 AM |