PDA

View Full Version : urls without .html


rob
18th Mar 2008, 08:41 pm
The Google webmaster tools have flagged up that it couldn't find one of my pages:

www.jimbuddy.com/articles

Do I need to register settings somewhere so it works without having the .html at the end of it?

James
18th Mar 2008, 09:20 pm
For the URL jimbuddy.com/articles, Google (and indeed any browser) is actually searching for jimbuddy.com/articles/index.html (ie a file called index.html in a folder called articles).

Looks like this doesn't exist hence the problem. So you need to either:

(a) rename the page index.html and put it in a folder called 'articles', or
(b) do something clever with your server's .htaccess file that redirects requests for /article to /article.html

Option (a) is quick and easy.