rwagener11

Member
Jun 7, 2006
21
0
151
I have been reading and reading and reading. I can't seem to get the correct settings.

I want to have a parked domain forward to one page on my site. I want it to show the parked domain as the domain. However leaving the rest of the site untouched.

I have written

Code:
Options +FollowSymlinks 
RewriteEngine On
RewriteCond %{HTTP_HOST} parkeddomain.net$
RewriteCond %{REQUEST_URI} !^/dir/dir/?cat=1084&manufacturer=Main
RewriteRule ^(.*)$ http://parkeddomain.net/dir/dir/?cat=1084&manufacturer=Main [R=301,L]
my understanding is this will only redirect if that domain doesn't reside in that directory. If it does reside in that directory then don't redirect. But this keeps looping and looping.

WHAT AM I DOING WRONG?
 

rwagener11

Member
Jun 7, 2006
21
0
151
Yes

Actually yes I did use the feature inside cpanel. Once I setup in cpanel then I want to lock down the addon. I don't want that parked domain to go to any other page than the one specified.

For instance, I don't want them to be able to go to parkeddomain.com instead I want them to go to maindomain.com/dir/dir/etc/ looking like parkeddomain.com/dir/dir/etc/. Once they click a link on that page then it will goto the maindomain.com.

I know it's possible. I just am doing something wrong with the .htaccess file.
 

rwagener11

Member
Jun 7, 2006
21
0
151
The redirect tool isn't what I am looking for. It will redirect everything (maindomain.com) but not just the parked domain to a particular page. Please read the first post.

Thanks for trying...
 

lngtanseco

Well-Known Member
Jun 9, 2006
64
0
156
Try this:

edit the file httpd.conf

Code:
vi /usr/local/apache/conf/httpd.conf
if maindomain.com username is maind

Code:
<VirtualHost xx.xx.xx.xx:80>
    ServerName maindomain.com
    ServerAlias www.maindomain.com www.parkeddomain.com parkeddomain.com
    DocumentRoot /home/maind/public_html
    ServerAdmin [email protected]
   .................
</VirtualHost>
then

Code:
/usr/local/cpanel/bin/apache_conf_distiller --update
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
The redirect tool isn't what I am looking for. It will redirect everything (maindomain.com) but not just the parked domain to a particular page. Please read the first post.

Thanks for trying...
I did. It must not be clear, or I'm thick. But if you have a parked domain you'd like to point to something, it is listed (the parked domain) in the drop down list on the redirect page. Selecting it, and then pointing it to the place you want it go is not what you seek?