| Posted: 29 December 2009 at 1:56pm | IP Logged
|
|
|
I have succesfully implemented the mapfile solutions several times in my self made CMS. I use a mapfile to rewrite all paramenters in the querystring.
I use in .htaccess
RewriteEngine on
RewriteMap mapfile txt:images/mapfile.txt
RewriteCond %{REQUEST_URI} ^/(?:images|cms) [NC] RewriteRule .? - [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/?$ index.asp?${mapfile:$1} [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+/[^/]+)/?$ index.asp?${mapfile:$1} [NC,L]
What i would like to do is to optionally add an extra parameter like this:
http://www.aannemersmarkt.nl/uw-bedrijf/cid=1 or http://www.aannemersmarkt.nl/uw-bedrijf/&cid=1
The part cid=1 should be added behind the rewrite. Is this possible?
|