Solved

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

Posted on 2006-11-18
2
258 Views
Last Modified: 2008-01-09
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
Comment
Question by:myrepublic
2 Comments
 
LVL 13

Accepted Solution

by:
rhickmott earned 500 total points
ID: 17988445
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question