Thursday, 15 April 2010

.htaccess - How to make 'www.site.com/contact.php' to be 'www.site.com/contact/' ? -


Looking for some help with my .htaccess file and mod-rewrite

I get my URL more friendly.

I want to get my URL from here: www.site.com/contact.php

  www.site.com/contact/   

Any help would be appreciated?

As you've already mentioned, you need to add an entry to HTACAC.

  option + re-write the follow up clerks. ^ Contact /contact.php   

Or if you want to do this on all your php pages, just modify it as:

  RewriteEngine RewriteCond at% {REQUEST_FILENAME}! -d Recovery code% {REQUEST_FILENAME} \. Php -f rewrite rule ^ (. *) $ $ 1.php    

No comments:

Post a Comment