spavkov
Programmer
- Jun 16, 2004
- 26
Hi you all!
i have a very important problem i want to solve so please help:
i would like to create a single .htaccess file for my Apache server (GoDaddy hosting linux server) that will allow me a subdomains for every subdir on my server's root:
for example: if my i have a server:
and i have 3 subdirs in the servers document root:
test1
test2
test3
i want that if user enters in browser that he gets redirected to
and
that he gets redirected to
and
that he gets redirected to
also users must not see in browser the subdirs, so after the redirection, if user clicks on the links on the pages the subdir name must not show in urls, it must looks like a real subdomain.
so if there is a link in page
to the page /contacts.html
and user click on this link, then in browser address box it must show:
and NOT LIKE THIS:
now im sure that this is possible to do with .hraccess file and modrw but i dont know how...
PLEASE HELP ME !!!!
anyone?
i have a very important problem i want to solve so please help:
i would like to create a single .htaccess file for my Apache server (GoDaddy hosting linux server) that will allow me a subdomains for every subdir on my server's root:
for example: if my i have a server:
and i have 3 subdirs in the servers document root:
test1
test2
test3
i want that if user enters in browser that he gets redirected to
and
that he gets redirected to
and
that he gets redirected to
also users must not see in browser the subdirs, so after the redirection, if user clicks on the links on the pages the subdir name must not show in urls, it must looks like a real subdomain.
so if there is a link in page
to the page /contacts.html
and user click on this link, then in browser address box it must show:
and NOT LIKE THIS:
now im sure that this is possible to do with .hraccess file and modrw but i dont know how...
PLEASE HELP ME !!!!
anyone?