htaccess Rewrite Rule for subdomain to page

前端 未结 2 1937
死守一世寂寞
死守一世寂寞 2020-12-19 19:04

Currently I have a page residing at:

http://www.example.com/site/page

In my htaccess I have the current rule:

RewriteRule ^         


        
2条回答
  •  醉话见心
    2020-12-19 19:11

    Try this one :

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteCond %{HTTP_HOST} ^(.*)\.example\.com$ [NC]
    RewriteRule .* retailer.php?linklabel=%1 [L,QSA]
    

提交回复
热议问题