• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

.htaccess : Hiding .php extensions in URL

clubhost

New Member
Hi

I was wondering if there is anyway we can hide the .php extension in the URL using .htaccess?

For example

These URLs:
Code:
example[dot]com/home.php
example[dot]com/welcome/contact-us.php
example[dot]com/home/support/email_us.php


Should look like
Code:
example[dot]com/home
example[dot]com/welcome/contact-us
example[dot]com/home/support/email_us


Pls let me know if this is possible and how?


Many thanks
 
It's done with mod_rewrite. Too lazy to find URLs or examples right now. Just google mod_rewrite and you'll find what you need.
 
HI Thanks for teh reply. But I am looking for fully SEO friendly URLs. I know this can be done with .htaccess and the apache mod_rewrite module but I am looking for the exact syntax.

Thanks
 
Back
Top