dalrae Posted September 26, 2020 Posted September 26, 2020 Hi, so currently people are able to do "<mydomain>.com/admin" and "admin.<mydomain>.com". I want them to only be able to do "admin.<mydomain>.com". Is this possible to do? My addon domain is located in "public_html/<mydomain>" Quote
Krydos Posted September 26, 2020 Posted September 26, 2020 Edit your .htaccess and try this RewriteEngine On RewriteCond %{HTTP_HOST} !admin.mydomain.com$ [NC] RewriteRule ^/admin/(.*)$ https://admin.mydomain.com/$1 [R=301,L] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.