Mar

19

There are times that you don’t want to give visitors a clue what the programming language you are using. This can be easily achieved. Take a look at the code below:


Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /$1.php [L,QSA]

In this example, this will completely remove the file extension from your URL such as example instead of example.php



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

1 Comment so far

  1. Muro on December 24, 2008 10:38 am

    Very Usefull İnfo. I used this feaure on this site http://property.theartofbronzeland.com

Sponsors




Links