PDA

View Full Version : Redirecting a parked domain



Wes
03-13-2006, 02:27 PM
I have a parked domain on my account that is used for my brother's email account. He does not have a website yet his domain points to mine so typing in his name comes to my site.

What's the easiest way to redirect traffic from his domain to a blank page or something other than the root of my site?

DrRx
03-13-2006, 02:58 PM
Try below *htaccess code*



RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} parked_domain$
RewriteRule ^(.*)$ something.html [L]

Annotation: something.html = "blank.html" or "default.html of BH" to subdirectory of the root of your site.

jon3330
03-13-2006, 05:29 PM
If you have not used up all of your addon domains make it a addon and put what ever as his index page is the addon file.

Wes
03-13-2006, 08:15 PM
Try below *htaccess code*



RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} parked domain$
RewriteRule ^(.*)$ http://parked domain/something.html [L]

Annotation: something.html = "blank.html" or "default.html of BH" of the root of your site.

This isn't working for me, I get 500 server errors when I try to access the parked domain with this code in my .htaccess file.

There is already a mod_rewrite block established by Wordpress that I tried to integrate this code into as well but no luck.

What's the trick to getting this to work?

DrRx
03-14-2006, 05:30 PM
I have modified some code into above #2 *htaccess code* (just delete "http://parked domain/"), and it works fine for me.

Please try it again!

Wes
03-16-2006, 11:05 AM
Thanks DrRX, that fixed it right up!

cher
09-17-2006, 08:32 AM
is this the only way to redirect a parked domain? BH doesn't have it set up to be able to do this?

Reichling
09-17-2006, 10:19 AM
is this the only way to redirect a parked domain? BH doesn't have it set up to be able to do this?

Through like the CPanel? No.