Forum Moderators: open

Message Too Old, No Replies

Don't Give Files an Extension?

         

almo136

1:39 pm on Jun 24, 2009 (gmt 0)

10+ Year Member



Hi,

I have a bunch of pages which I am going to be using to automatically redirect to an external app using a meta direct.

My question is:

Do the pages doing the redirect need to have a .html extension (or any extension). The way the app is set up I really don't want to to use an extension and it seems to be working fine without them (in ie7 at least)

Just wondered if there are any risks/drawbacks to got giving these files an extension.

Thanks!

tedster

8:43 pm on Jun 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as I know NO url needs an extension - and going extensionless is actually a very savvy step because it future-proofs the url involved from technology changes.

almo136

8:53 pm on Jun 24, 2009 (gmt 0)

10+ Year Member



Excellent. Exactly what i wanted to hear!

g1smd

8:14 pm on Jun 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If there are physical HTML or PHP files on the server then they DO need an extension.

The *URL* you use to access those files does NOT need an extension.

A rewrite is what connects the two, finding the right file to serve when you request an extensionless URL.

Images should always be served by using an extension both in the URL and for the files.