Hello,
i have a site with php application which writes/uses subdomain to a variable. I have tried couple of rules but nothing worked out. here is htaccess code
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteBase /appfolder/
RewriteCond %{HTTP_HOST} !www.site.com:8888$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).site.com:8888 [NC]
RewriteRule (.*) /index.php?var1=home&var2=start&var3=%2 [NC,QSA]
here i want to grab subdomain value to var=3...please help
Thanks in advance