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
Solved

Redirect site to a different sub directory

Posted on 2013-11-26
3
299 Views
Last Modified: 2013-12-27
Hi,
I am using shared hosting facility with my number of sites.

Currently my main site xyz.com is pointing to home directory /home/xyz and other sites are under this main directory. What this means is I can't provide access to  xyz.com without sacrificing other sites.

One way I can see is using forwarding rule in my  /home/xyz  to forward to another subdirectory  /home/xyz/xyzwebsite. How do I do this?

Thanks
0
Comment
Question by:crazywolf2010
3 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39677487
if you're using a url rewriter, you can do something like:

RewriteEngine On
RewriteRule ^$ /xyzwebsite [L]
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

837 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