Forum Moderators: phranque
What rule would I use to transform...
[spectrum5media.com...]
... to ...
[spectrum5media.com...]
That's the easier one. The trickier one is, I would like to be able to transform ...
[spectrum5media.com...]
... to ...
[spectrum5media.com...]
Is this possible? The value after the first / will always map to the 'template' variable, but after that there will be an unknown number of name/value pairs that need to be rewritten as &get=something. There might not be any, or their might be 10.
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)$ /index.php?template=$1&$2=$3&$4=$5&$6=$7 [L]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)$ /index.php?template=$1&$2=$3&$4=$5 [L]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)$ /index.php?template=$1&$2=$3 [L]
RewriteRule ^([^/]+)$ /index.php?template=$1 [L]