How do you have no file extension on pages?

Submitted by Will on Mon, 06/23/2008 - 16:32.
Not sure if this is the right forum, but it was mentioned in one of the BIP sessions I think, but not how to do it.
I have used .html extensions in the past and recently switched to .php.
No extension does look better, any other benefits?
What does it take to actually do a site with no extensions?
thanks.

You can do this if the page
You can do this if the page is the index page of a directory.
For example, index.html in the directory named "PPC" could be accessed at (and show in the browser as) "http://www.your-domain.com/PPC".
You could also access the page as "http://www.your-domain.com/PPC/index.html".
Note: if your server is set to use only .php files as index pages, you'd have to use "index.php" -- and on Microsoft servers that might be "default.html".
In other words, the exact page (i.e. file name and extension) is site specific but easily determined. Just check to see what kind of page shows when you go to "http://www.your-domain.com" :)
I should also add (now that
I should also add (now that I'm logged in, LOL!) that many (probably most) Linux servers will do this for *html* pages flawlessly *IF* you just don't add an extension to your files (e.g. save "contact.html" as "contact".
However, if you are using PHP and any PHP commands (includes, echo's, etc.) those will *NOT* work if you just save "contact.php as "contact" (there's probably a .htaccess workaround here but I don't know it off the top of my head).
Also, most servers will be configured to search for a specific type of file to use as the index page, so my first post above should be used for index pages most likely.
But 100% of this stuff is configurable on a server-by-server basis, so you'll just have to test (or get a dedicated server).
let's see if this .htaccess
let's see if this .htaccess file directive renders correctly when i paste it in...
<Files ~ '^(jump|recommend)$'>
ForceType application/x-httpd-php
</Files>
this code would allow an extensionless php file named 'jump' or 'recommend' to be invoked by the PHP interpreter when you access /jump or /recommend
just add the .htaccess file to the directory in which the extensionless files occur.
obviously you can expand upon it by adding file names to the regular expression. you could probably even modify the regex to allow ANY extensionless php file to be recognized and executed as such, but i have only used this to specify particular named files.
Stephen Carter
creator of Review Foundry
Thanks for the help. At
Thanks for the help.
At least it's not so easy and obvious that I should have known!