: You could not at a subdomain via a .htaccess file. You need to modify the vhost configuration and add one more vhost. Have a look at the documentation of your webserver how to do this.
You could not at a subdomain via a .htaccess file.
You need to modify the vhost configuration and add one more vhost.
Have a look at the documentation of your webserver how to do this.
EDIT:
There is a logical reason behind this (i don't know all webservers and there features, so correct me if i tell something wrong):
Lets look at a typical HTTP request(send by client):
GET /index.php HTTP/1.1
Host: example.org
So, we have the following information in this request:
the uri: index.php
the protocol version we understand: HTTP/1.1
the Host (vhost) we want the uri from
On such a request, the webserver does a few lookups:
Host: first the server needs to know in which directory he should look, this is part of the vHost configuration
the uri you are looking for
As the .htaccess file does belongs to a vhost (a.example.org), we have already behind the vhost decision.
More posts by @Pierce454
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.