I am using the following .htaccess code:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ca/(.+)$ /index.php?p=$1&c=ca [L,QSA] RewriteRule ^fr/(.+)$ /index.php?p=$1&c=fr [L,QSA] RewriteRule ^(.+)$ /index.php?p=$1 [L,QSA]
To achieve the following effect:
http://xyz.com/ca/test -> http://xyz.com/index.php?p=test&c=ca http://xyz.com/fr/test -> http://xyz.com/index.php?p=test&c=fr http://xyz.com/test -> http://xyz.com/index.php?p=test
But this is a server error. Any ideas on how to fix this?
thanks
source share