Forum Moderators: phranque
i have written the following expression in .htaccess
RewriteRule ^www.domain.com/[a-z]/[a-z]$ index.php?linkname=$1&maincat=$2
but when i use URL like www.domain.com/toys/games it gives me 500 internal server error, any suggestions in this regard are highly appreciated. thanks
RewriteRule ^([a-z]+)/([a-z]+)$ /index.php?linkname=$1&maincat=$2
The RewriteRule only applies to the 'path' component of the URI - not the domain name. The domain name, query string, etc can be processed using RewriteCond directives before the RewriteRule.