Re: URL modification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 4:46 PM +0000 2/25/08, Nathan Rixham wrote:
It may be a good time to throw in this .htaccess which just palms eveything [not found] off to php

[.htaccess]
RewriteEngine On
RewriteBase /

DirectoryIndex handle.urls.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /handle.urls.php [L]
[/.htaccess]

I use this for everything nowadays, in terms of security it also allows me to keep every script out of the web root; and joy of joys don't need to change any rules for static files, as they will always be "found" and thus the rules won't apply:

follow?

No, I don't.

Please explain. Sounds cool.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux