RewriteRule to hide PHP vars in URL

From: Date: Sun, 25 Oct 2009 15:04:27 +0000
Subject: RewriteRule to hide PHP vars in URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-299317@lists.php.net to get a copy of this message
I'm trying to follow the RewriteRule docs to make it so that: http://benchwarmersports.com/packages/super-bowl-xliv/1 can be entered into the web-browser, and it transforms into: http://benchwarmersports.com/packages.php?title=super-bowl-xliv&eventid=1 The good news is that it does transform the url when I do this. The bad news is that it also attempts to transform all the links (including to JS files and images). Can someone tell me what I'd need to modify to avoid this problem with the RewriteRule? My .htaccess file presently looks like this: Options +FollowSymlinks RewriteEngine On RewriteOptions MaxRedirects=10 RewriteBase / RewriteRule ^packages/([^/]+)/([^/]+)$ /packages.php?title=$1&eventid=$2 [NC]

« previous php.general (#299317) next »