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>"
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]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now