View Full Version : Removing File Extensions in URL


Joseph Witchard
04-08-2010, 06:09 AM
I know this is done with .htaccess and mod_rewrite. This is my current code using mod_rewrite:

^(somepage|someotherpage)/?$ /$1\.php

I've heard there's a more efficient way of removing the extension. What is it?

Rick Rolled
05-19-2010, 10:57 PM
Honestly, I found it's easier to make index.htm (or your other index file) an iframe, and have the entire website appear in it. And the actual first page of your site be something like "main.htm" and include it as a default. I don't know if this'll help or not, but it worked for me.