Created
October 8, 2015 14:39
-
-
Save willboudle/4ebe28ed6db875ea8341 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment