Remove .php File Extensions

Ask about a PHP problem here.
Post Reply
unemployment
Posts: 165
Joined: Fri May 06, 2011 5:02 pm

Remove .php File Extensions

Post by unemployment »

How do you remove the .php from the file extensions in the URL? I've noticed a lot of companies now don't showcase what type of server side language they use. Is this something that would need to be figured out in .htaccess?
User avatar
Dylan
Posts: 150
Joined: Fri May 06, 2011 7:14 pm

Re: Remove .php File Extensions

Post by Dylan »

Short Answer:
Yes, .htaccess can do that.

Longer Answer:
They are generally called "vanity" URLs. Jacek touches on them during his template tutorial series.

Dylan is lazy and just google's URLs Answer:
http://net.tutsplus.com/tutorials/other ... etty-urls/
http://www.sitepoint.com/forums/php-34/ ... 19177.html
http://www.webdesignerforum.co.uk/topic ... ent-users/
http://www.developphp.com/dev_forum/vie ... nity%20url
http://betterphp.co.uk/playlist.html?pi ... 1A4FB3EE40
unemployment
Posts: 165
Joined: Fri May 06, 2011 5:02 pm

Re: Remove .php File Extensions

Post by unemployment »

After digging I figured it out. Thanks.
Post Reply