Solved

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

Posted on 2006-11-18
2
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

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…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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