Apache Server configuration support - Re: Leaving out the file extension

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Re: Leaving out the file extension





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Leaving out the file extension
Erwin Moller

2007-01-10, 1:19 pm

Mike Azzopardi wrote:

> Hi
>
> I'm hoping someone will help me with a problem please.
>
> On a webserver I was using (apache), I noticed that you could leave the
> .htm off the end of files and the webpage would still display correctly
> (not an index.htm file but any htm file)
>
> e.g.
> www.server.com/file1.htm would display correctly if I typed the URL
> www.server.com/file1 without the file extension.
>
> But I have moved hosting companies (I believe they are using a windows
> 2003 server) and it doesn't let me leave out the .htm.
>
> If anyone could shed any light it would be most appriciated.
>
> best regards
> mike


Hi Mike,

I expect your former server had some rewriterules (mod_rewrite) in the
configfile, probably adding .htm if no extension was given.
I do not know of such a engine under IIS.

My advise would be to fix the file extension.
Why did you leave them out in the first place?

Regards,
Erwin Moller
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com