Welcome to WebmasterWorld Guest from 54.167.174.11

Message Too Old, No Replies

Index.asp showing for homepage

   
9:10 am on Apr 25, 2012 (gmt 0)

5+ Year Member



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!

Thanks
3:19 pm on Apr 25, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Easiest way would be to put a canonical tag on your home page: [googlewebmastercentral.blogspot.com...]

I would NOT put index.asp in robots.txt, that will NOT cause google to stop indexing it.

Alternatively you could make index.asp redirect to the proper url of the home page. Takes a bit of server configuration to do it though.
9:38 pm on Apr 25, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



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:

RewriteCond %{THE_REQUEST} index\.asp
RewriteRule (([^/]+/)*)index\.asp$ http://www.example.com/$1 [R=301,L]

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.
1:09 pm on Apr 27, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



If your pages have links somewhere to the /index.asp you need to find them and remove them otherwise you're only masking the problem.
4:36 pm on Apr 30, 2012 (gmt 0)

5+ Year Member



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.
5:05 pm on Apr 30, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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).
5:02 pm on May 3, 2012 (gmt 0)

5+ Year Member



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.