开发者

htaccess for subdomains

开发者 https://www.devze.com 2023-03-09 08:55 出处:网络
How to translate the example URL to the needed one? From http://test.at.domain.com To http://domain.com/a开发者_C百科t/index.php?id=test

How to translate the example URL to the needed one?

From

http://test.at.domain.com

To

http://domain.com/a开发者_C百科t/index.php?id=test


RewriteEngine on
RewriteCond %{HTTP_HOST} (\w+).at.domain.com [NC]
RewriteRule .* http://domain.com/at/index.php?id=%1 [L]
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号