Solved

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

Posted on 2006-11-18
2
255 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now