NYCPHP Meetup

NYPHP.org

[nycphp-talk] Howto create custom URLs

Jiju Thomas Mathew lists at silmail.com
Mon Mar 26 07:00:49 EDT 2007


>
>
> Even if you are able to use mod_rewrite, you probably need to do a
> database lookup to find MayEvent07 so your mod_rewrite rule would be
> something like this:
>
> RewriteEngine on
> RewriteRule !\.(js|ico|gif|jpg|png|css|html|htm|xml|php)$ index.php
>
>
I would go for
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php



-- 
Jiju Thomas Mathew
http://www.php-trivandrum.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070326/251ae5ee/attachment.html>


More information about the talk mailing list