total noob - trying to redirect parked domains to subfolders
Hi,
I hope I make sense when I say that I have a domain registered, with hosting and a few pages on there. I have also parked a couple of domains - meaning that when a user types, for example, http://www.parked-domain.com they get the index page for the main domain. However, I'd like the following:
When a user requests http://www.parked-domain.com they are actually directed to a subfolder of the main domain and are able to navigate within that subfolder, as if it were a seperate site.
I have managed to use the following code (cobbled together from info on the web) to make it so that a certain page is shown when the parked domain is requested. When I try and create links from this page (which displays OK) they don't work - all I get is the original subfolder page (bbindex.htm), but the URL shown is that of the page that the link was for.
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.parked-domain.com$
RewriteRule ^(.*)$ bbindex.htm [L]
Is there any way to get the behaviour I want?
I thought that this should work:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.parked-domain.com$
RewriteRule ^(.*)$ /subfolder/ [L]
But I get a "500 server error"
I have the .htaccess file in the root (www) folder of my site. I am only using plain old HTML for the pages.
many thanks for any help,
Mark
I hope I make sense when I say that I have a domain registered, with hosting and a few pages on there. I have also parked a couple of domains - meaning that when a user types, for example, http://www.parked-domain.com they get the index page for the main domain. However, I'd like the following:
When a user requests http://www.parked-domain.com they are actually directed to a subfolder of the main domain and are able to navigate within that subfolder, as if it were a seperate site.
I have managed to use the following code (cobbled together from info on the web) to make it so that a certain page is shown when the parked domain is requested. When I try and create links from this page (which displays OK) they don't work - all I get is the original subfolder page (bbindex.htm), but the URL shown is that of the page that the link was for.
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.parked-domain.com$
RewriteRule ^(.*)$ bbindex.htm [L]
Is there any way to get the behaviour I want?
I thought that this should work:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.parked-domain.com$
RewriteRule ^(.*)$ /subfolder/ [L]
But I get a "500 server error"
I have the .htaccess file in the root (www) folder of my site. I am only using plain old HTML for the pages.
many thanks for any help,
Mark