Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

Is it possible to use .htaccess to make sub-domain act as root?

Is it possible to use .htaccess to make sub-domain act as root?

Specifically I'd like to use Server-relative links, eg. /directory/file.html

Though the server-relative link should be relative to the sub-domain root rather than the "real" domain root.

This would be very helpful for building sites online and then migrating them to their actual domain roots.

Thanks.
0
myrepublic
Asked:
myrepublic
1 Solution
 
Robin HickmottSoftware DeveloperCommented:
Well yes and no it all depends on what level of access you have to your server and more importantly where the sub domain points to.

A subdomain will usually have its own root

http://subdomain.domain.com/ will appear as root.

I guess the question is what exactly are you trying to do :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now