Hello -
I've written the code for redirecting with .htaccess and it works just fine in the browser - both IE and Firefox - thanks to the explainations here.
The problem is when I use an SEO text browser. $1 repeats itself in the URL while on the redirected page
Example in Firefox:
domain.com/var1/var2
In SEO text browser:
domain.com/var1/var1/var2
Here's my .htaccess code:
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/\.]+)/?$ /index.php?q=$1 [QSA,L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ /index.php?q=$1&s=$2 [QSA,L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ /index.php?q=$1&s=$2&c=$3 [QSA,L]
Any help is greatly appreciated - thanks.