Forum Moderators: phranque
I'm a newbie, so please excuse my ignorance.
I have a parked domain pointing to a hosted site on the same ISP. I would like to have the parked domain go directly to a folder on the hosted site. I was going to add a php script to the index page, but this would create many broken links throughout the site. So, I'm trying to do this throught the htaccess file.
Putting this on the htaccess on the hosted site doesn't seem to work:
(parked domain is already pointed to hosted domain)
Redirect [parked_domain.info...] /target_folder_on_hosted_site/folder.html
Any ideas or suggestions? thanks in advance.
Jim
thanks for the response. What they are calling "parked" means that we registered the domain and I've set a pointer for our hosted domain to appear when they enter the parked domain's url. ok. so, I tried adding the code above to the htaccess file to no avail. I was hoping for someone to share a piece of code similar to the code I saw here when I searched the library using redirect as the keyword. I'm trying to edit the htaccess file so that www.parked_domain.info (already pointed to hosted-domain.com) results in www.hosted_domain.com/folder/file.html. First off, I'm trying to determine if it's possible to do this. then, if someone would be kind enough to share the code to do it.
thanks again...
RewriteCond %{HTTP_HOST} ^www\.parked_domain\.info
RewriteRule (.*) /folder/$1 [L]
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.parked_domain\.info
RewriteRule (.*) /folder/$1 [L]
Am I getting closer?
I'm assuming that this goes into htaccess?
thanks again,
Steve
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.parked_domain\.info
RewriteRule (.*) /folder/file/.hmtl/$1 [L]
I got a "http 500 internal server error". Note: I added the "file/.hmtl/" to the last line to point to the file I wanted to load.
thanks,
Steve