Solved

Redirect site to a different sub directory

Posted on 2013-11-26
3
311 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
[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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
original content 7 121
Need help for active menu class depending of the page 4 28
Woo-commerce gallery not working properly 12 40
Error just appeared 3 23
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

732 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