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:
http://gist.github.com/22877
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
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论