Reputation: 5438
I have a subdomain named blog so i usually access by blog.mydomain.com
but can also accessed by the url mydomain.com/blog. I don't want this url to be used and how can i prevent it ??
Upvotes: 0
Views: 42
Reputation: 2265
The only way you can prevent that url i.e*(mydomain.com/blog)* is to redirect it using .htaccess to the subdomain.
Upvotes: 1