Subdomain vs folders


#1

Right now, only the subdomains work…

For example, go to:
http://caravaggio.baptism-of-blood.net
It works fine. But, I also want it to work if people type in http://www.baptism-of-blood.net/caravaggio .

Is this possible?


#2

Add to your /home/username/baptism-of-blood.net/.htaccess file:

RedirectMatch /caravaggio$ http://caravaggio.baptism-of-blood.net/

:cool: [color=#6600CC]Atropos[/color] | openvein.org


#3

What Atropos7 described will work, although note that subdomains are have their own separate directory and are not tied to their corresponding top level domain folder.


Save $97 on all yearly plans with the promo code [color=#CC0000]DREAMZAP[/color]


#4

Thank you both for your replies. I’ll try that Atropos7. :slight_smile:


#5

Actually the document root of a subdomain can be the same or a subdirectory of another’s document root. What you describe is the default.

One can also alias a url-path to another directory using the Remap Sub-dir panel.

:cool: [color=#6600CC]Atropos[/color] | openvein.org


#6

[quote]Actually the document root of a subdomain can be the same or a subdirectory of another’s document root. What you describe is the default.

One can also alias a url-path to another directory using the Remap Sub-dir panel.[/quote]
I was going to edit my post to mention it being the default, but I feared of having to go through another click marathon of Internal Server errors.


Save $97 on all yearly plans with the promo code [color=#CC0000]DREAMZAP[/color]