Nahian Khondoker
Nahian Khondoker

Reputation: 367

Subdomain using .htaccess only

I wanted to know if it is possible to implement sub domain in a web application, only using trick in the .htaccess file? That is avoiding the following

  1. editing the hosts file for the subdomain link
  2. adding a vhost config for the same

Your help be deeply appreciated.

Thanks.

Upvotes: 0

Views: 104

Answers (2)

Manish
Manish

Reputation: 5213

This is not possible by only using an apache directives.

Upvotes: 1

Kyle Monti
Kyle Monti

Reputation: 704

You can add a rewrite command that changes a link to a subdomain.

Upvotes: 0

Related Questions