How to write such Apache RewriteCond?
大家讲道理
大家讲道理 2017-05-16 17:04:00
0
1
519

Require:
When users visit http://ask.mysite.com, they are redirected to the maintenance page.
When accessing other URLs, such as http://bbs.mysite.com or http://mysite.com, it will display normally.

It is to determine the subdomain

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
小葫芦

RewriteCond %{HTTP_HOST} !^ask\.mysite\.com [NC]

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template