NYCPHP Meetup

NYPHP.org

[nycphp-talk] Mod_rewrite and pretty urls problem

Cliff Hirsch cliff at pinestream.com
Tue Feb 5 12:16:40 EST 2008


> Make images, javascript and css relative to root.  This is standard
> practice.  Put the css/javascript in a folder with gzip turned on, and
> the images in a folder without gzip.

Thanks John. Makes sense. Had it the other as a legacy leftover from when my
dev. app was in a subdir.
 
>>  Also, what is the proper RewriteRule to preserve get query variables?
> Just use add [QSA] (Query string append) to the end.
> RewriteRule ^(.*)$ index.php?req=$1 [QSA]

Excellent. This pretty url, mod_rewrite mystery is coming together...





More information about the talk mailing list