Using mod_rewrite when site is on subdomain
Posted on 2004-08-18
Hi, I'm trying to use mod_rewrite to produce clean URI's, but the page won't load after I make the required changes to the .htaccess file.
I'm setting up a photo site on a subdomain of my main site, and I think I may need a different value for RewriteBase (instead of a subfolder) because of that. Hoping someone can point me in the right direction. Thanks!
RewriteRule ^(.*)/(.*)?/?$ index.php?a=$1&i=$2 [QSA]
RewriteRule ^(.*)?/?$ index.php?a=$1 [QSA]