note 41458 added to security.hiding
| From: | php at user dot net | Date: | Sat, 10 Apr 2004 22:36:47 +0000 |
| Subject: | note 41458 added to security.hiding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67967@lists.php.net to get a copy of this message | ||
What about this in a .htaccess file :
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ /$1/index.php [L]
RewriteRule ^([a-zA-Z0-9\-\_/]*)\.(html|htm)$ /$1.php [L]
RewriteRule ^([a-zA-Z0-9\-\_/]*)$ /$1.php [L]
Typing "sub.domain.foo/anything" loads "/anything/index.php" if
'anything' is a directory, else it loads "/anything.php".
I'm sure you can find mutch better, but it works great on my site :)
----
Manual Page -- http://www.php.net/manual/en/security.hiding.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41458
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41458&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41458&report=yes
Search -- http://master.php.net/manage/user-notes.php