Sometimes ago I started a thread
<http://groups.google.c om/groups?threadm= abc4d8b8.040401 2208.76ebdba7%4 0posting.google .com>
<Previous post>
I'm supposed to hide the php extension in a file (like Yahoo! or
Google). For example, http://foo.com/foo instead of
http://foo.com/foo.php. I have read various articles including
<http://in2.php.net/security.hiding > . Certainly mod_rewrite is not
the right option. In Apache, "file.php" & "file" are treated as same
(content negotiation??) and like to know, how reliable it is? Is there
any other options to do the same? TIA
</Previous post>
At that time I was getting many answers. But, recently I have found
another suggestion in the 'net:
<FilesMatch "^([^\.]+)$">
ForceType application/x-httpd-php
</FilesMatch>
Source: http://forum.textpattern.com/viewtopic.php?id=184 and
Any comments or any better ideas? TIA
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
<http://groups.google.c om/groups?threadm= abc4d8b8.040401 2208.76ebdba7%4 0posting.google .com>
<Previous post>
I'm supposed to hide the php extension in a file (like Yahoo! or
Google). For example, http://foo.com/foo instead of
http://foo.com/foo.php. I have read various articles including
<http://in2.php.net/security.hiding > . Certainly mod_rewrite is not
the right option. In Apache, "file.php" & "file" are treated as same
(content negotiation??) and like to know, how reliable it is? Is there
any other options to do the same? TIA
</Previous post>
At that time I was getting many answers. But, recently I have found
another suggestion in the 'net:
<FilesMatch "^([^\.]+)$">
ForceType application/x-httpd-php
</FilesMatch>
Source: http://forum.textpattern.com/viewtopic.php?id=184 and
Any comments or any better ideas? TIA
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Comment