Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

.com versus .com/index.html

How to get Google to correct this

         

Ledfish

5:09 am on Feb 14, 2007 (gmt 0)

10+ Year Member



Up until early this month our site always showed a listing for www.mydomain.com. Then one day our ranking disappeared for a major keyword.

So when I looked at the listing of our pages in Google, it no longer shows www.mydomain.com (which had been ranking), but instead it now shows www.mydomain.com/index.html (which is not ranking).

How can I get Google to correct this or is this just one of those things I will have to wait for them to sort out.

Silvery

3:18 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



You need to be sure to use only one URL on your site for the homepage. So, the first order of business is to have you consistently link to your homepage the same from everywhere.

Second, you probably should program your server to 301 redirect www.example.com/index.html to www.example.com/ if you can.

This is referred to as cannonization -- you need to use one cannonical address for your site so you don't split a page's rank across multiple URLs.

new_shoes

4:18 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



I concur with Silvery.

Secondly, make sure that when people add links to your site that they always link to .com/ and not index.html.

The 301 is definitely the way to go.

Ledfish

4:28 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



You need to be sure to use only one URL on your site for the homepage. So, the first order of business is to have you consistently link to your homepage the same from everywhere.

All links internal and external, point to www.mydomain.com


Second, you probably should program your server to 301 redirect www.example.com/index.html to www.example.com/ if you can.

It's a windows platform, so if I did that, I would think it would create an infinite loop because when you call www.mydomain.com, the default page you get is index.html.

This is referred to as cannonization -- you need to use one cannonical address for your site so you don't split a page's rank across multiple URLs.

I thought what you referring to as cannonization (not correctly spelled) dealt with www versus non-www, of which I beleive this is not an issue of.

youfoundjake

6:41 pm on Feb 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In iis Admin:
1. Browse the website you want to do the redirect for.
2. In the right pane, right click on the file you want to redirect, and click "Properties"
3. Under the "File" tab, hit the radio selection "A redirection to a URL"
4. Put the target in the "Redirect to" textarea.
5. Make sure "The exact URL entered above" and "A permanent redirection for this resource"

Or you can use a script..


Place the following code above your <html> tag or <!DOCTYPE>, if you have one:

<%@ Language=VBScript %>
<%
response.status="301 moved permanently"
Response.AddHeader "Location", "http://www.domain.com/file-location.html"
%>

I found these doing a search for IIS 301, this may help point you in the right direction. But bear with me as I am running on apache.

g1smd

12:42 pm on Feb 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Canonicalisation refers to getting the one main URL for the content indexed.

It covers www vs. non-www issues, .com vs. .co.uk issues, /index page name vs. "/" issues and URL capitalisation issues (/Page1.html is not the same URL as /page1.html).

They are all important. Also related: URLs with session IDs, etc.