hi i have a problem..
i want to redirect multiple variables. i want to redirect..
variable1.domain.com/variable2 to
www.domain.com/subfolder/index.php?var1 ... =variable2
this is what i currently have in .htaccess
- Code: Select all
Options +FollowSymLinks +Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301]
RewriteCond %{HTTP_HOST} !^(www|my)\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9]+)\.domain\.com$ [NC]
RewriteRule ^$ /subfolder/index.php?var1=%2 [NC,L]
its redirecting to the subfolder, but all folders under subfolder are missing (css folders, images folders, etc)