Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2006-11-18
2
Medium Priority
?
265 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 2000 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

610 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