Msg#: 4445104 posted 9:10 am on Apr 25, 2012 (gmt 0)
Sorry if this question has been posted before but I couldn't see an answer using search.
A search for my website name brings back the result domainname.co.uk/index.asp
I don't link to that file name anywhere on the site so I'm not sure how Google got hold of it but my question is what is the best way to tell Google that my homepage should just be: domainname.co.uk/ ?
Do I just add index.asp as an exclude to robots? I don't want to do anything that will have unexpected results!
Definitely include a redirect, but also fine-tooth-comb your site to make sure no "index.xtn" has sneaked in anywhere. (Been there. Done that. Why the bleep bleep does g### keep asking for onespecificdirectory/index.html? Oh. Because I have a link to it.)
This type of Redirect is two lines in the config file or htaccess:
Well, plus one line if you haven't already got the RewriteEngine on ;) The accompanying Condition is to prevent infinite Redirects if mod_dir has already done its stuff with correctly named files. If you are on shared hosting you can't make assumptions about what order the mods will execute in.
Thanks for the replies. I've done a 301 redirect and added a canonical tag for good measure. I honestly can't find anywhere that links to "index.asp" so I don't know where it got hold of it. Hopefully the redirect will sort it out.
Do you currently have your index.asp file set as the home page of your site (on the server)? If not, and you're using another file, then setting up a 301 redirect from index.asp to your home page (www.domain.cm) should help.
There are, though, links out there pointing to your index.asp URL.
Try searching for that url using quotes in Google to see where it's mentioned. I would also try to analyze the backlinks, using Open Site Explorer or Majestic SEO (preferred).
Msg#: 4445104 posted 5:02 pm on May 3, 2012 (gmt 0)
The index.asp is the homepage of the site but the redirect to "/" seems to have worked. I did a search in Google for "domain.co.uk/index.asp" and it said no results found. Really not sure where Google got it from, nothing is showing up in OSE or Majestic either.