Pointing parked domain to a sub-directory

Issue :

How to point a parked domain to a sub-directory of the main domain without any change in the URL ?

Fix :

This is like making the parked domain function like an add-on domain.
Assuming that the parked domain name is abc.com and the corresponding folder under the main domain is ‘abc’ .This can be achieved by putting the following in the .htaccess file for the main domain :

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} abc.com
RewriteCond %{REQUEST_URI} !abc/
RewriteRule ^(.*)$ abc/$1 [L]

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (1)

Leave a Reply | Trackback URL

  1. Graham says:

    I LOVE YOU.

    Thank you so much!!

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com