I have url
http://www.domain.com/folder/?variable=1
i would like to do a mod redirect to index.cfm with the folder going in as path variable and the variable as the second variable.. the first three lines work with my site, i am having trouble with the last bit
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.cfm?path=$1 [L]
RewriteRule (.*)\?(.*)$ /index.cfm?path=$1&$2 [L]
thanks
You need to add
QSA(orqsappend) flag, like this:This will make mod-rewrite append any original query-string to the sub-request.