Princeyesuraj
Princeyesuraj

Reputation: 5438

Need Only One URL for the subdomain of the website

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

Answers (1)

Manigandan Arjunan
Manigandan Arjunan

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

Related Questions