dalrae Posted September 26, 2020 Share 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 Link to comment Share on other sites More sharing options...
Krydos Posted September 26, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.