Link to home
Start Free TrialLog in
Avatar of Frank Tsao
Frank Tsao

asked on

RewriteCond to determine if host name or IP address is being accessed in Apache?

Hi experts,

How can I set up a RewriteCond to check if someone is accessing a site by its hostname (e.g. mydomain.com) or by the IP address (e.g. 123.4.5.6)?

ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frank Tsao
Frank Tsao

ASKER

Thanks :)