tajidyakub
9/10/2018 - 3:24 AM

Apache .htaccess redirect

Redirect ke domain lain dengan wildcard subdomain.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)(\.?)domain.com [NC,OR]
RewriteCond %{HTTPS_HOST} ^(.*)(\.?)domain.com [NC]
RewriteRule ^(.*)$ https://domain.org/$1 [L,R=301,NC]