• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Redirect site to a different sub directory

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
crazywolf2010
Asked:
crazywolf2010
1 Solution
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
if you're using a url rewriter, you can do something like:

RewriteEngine On
RewriteRule ^$ /xyzwebsite [L]
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now