mjauvin
mjauvin

I suggest using a Rewrite rule in .htaccess to do this.

mjauvin
mjauvin

Try this at the start of the .htaccess file:

    RewriteCond %{HTTP_HOST} ^admin.domain.com$
    RewriteRule ^ https://domain.com/backend/ [L]

*Note that the rule is applied only if domain = admin.domain.com (which should only be used to redirect to the backend area of the main domain)

mjauvin
mjauvin

You need two seperate domains in order for this to work, as mentioned in my Note above...

Last updated

1-7 of 7