Forum

Rweite subdomain by accesslist

Alex
2 November 2017, 12:01
Hi,
how to redirect all ip's except my ip from sd.domain.com to the www.domain.com?
Tanks in advanse.
Hugo Leisink
2 November 2017, 20:07
In the virtual host configuration for sd.domain.com, use AccessList option to allow access from only your IP address. Use the ErrorHandler option to set a 403 error file, which redirects (for example via a HTML meta tag [mediatemple.net]) everything to www.domain.com.
This topic has been closed.