I created a custom token to indicate what the base domain is:
Code:
DOMAIN_T=domain.com
Code:
|?BASEDOMAIN="0"|
|*if DOMAIN=DOMAIN_T|
|?BASEDOMAIN="1"|
|*endif|
|*if DOMAIN=DOMAIN_O|
|?BASEDOMAIN="1"|
|*endif|
|*if BASEDOMAIN="1"|
ServerName www.|DOMAIN|
ServerAlias www.|DOMAIN| |DOMAIN| |SERVER_ALIASES|
Redirect "/" "https://www.|DOMAIN|/"
|*else|
ServerName |DOMAIN|
ServerAlias |DOMAIN| |SERVER_ALIASES|
Redirect "/" "https://|DOMAIN|/"
|*endif|
Does anyone see what I am missing?
برچسب:
نویسنده: ایمان اصلاحی