I am trying to hide the extensions of my scripts like .php or .html, so that the person browsing the website, will not have any idea about the language the page is developed at.
Any Idea how to do this?
I am trying to hide the extensions of my scripts like .php or .html, so that the person browsing the website, will not have any idea about the language the page is developed at.
Any Idea how to do this?
i think id use the mod_rewrite like as follows:
this will allow anything with a valid page to be served but a 404 to be served if no page found
hope this helps
paul
try this
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]
</IfModule>
put that in the .htaccess of the root and it should propagate through all sub directories as well - that will take care of .php, you will need other rules for .html/.htm etc