Forum Moderators: Robert Charlton & goodroi
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.
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.
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.
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.
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.