htaccess子域名id类别

时间:2013-08-20 20:11:48

标签: .htaccess subdomain categories

因为我希望使用htaccess将类别更改为子域名: 例 这是我的网址

http://my-url.com/index.php?id_cat=29&l=category-name-here

我希望将其重写为:

http://category-name-here.my-url.com

   and this is what i try but i cant find what i want 

        Options +FollowSymLinks
    RewriteBase /

    RewriteCond %{HTTP_HOST} !^www.your-domain-name.com [NC]
    RewriteCond %{HTTP_HOST} ^(www.)?([^.]+).your-domain-name.com$ [NC]
    RewriteRule ^([^.]+)$ /some_file.php/$1?subdomain=%2 [L,QSA]


thank you 

0 个答案:

没有答案