Hi. I have a domain called socialequality.com.

It has a domain parked on top of it: stopshutoffs.org

I want stopshutoffs.org to show the drupal page at socialequality.com/caus. I now this can be done with .htaccess. Any ideas?

Comments

gbrands’s picture

I think the following might do the trick:

#Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.stopshutoffs.org$[OR]
RewriteCond %{HTTP_HOST} ^stopshutoffs.org$
RewriteRule ^(.*)$ http://www.socialequality.com/caus [R=301,L]
rtdean93’s picture

I tried using the code above (with the [OR] flag, but it did not work. When I separated the lines of code, it finally worked...

 #Options +FollowSymLinks
 RewriteCond %{HTTP_HOST} ^miraclebind.com$
 RewriteRule ^(.*)$ http://www.blueline.com/miraclebind [R=301,L]
   
 RewriteCond %{HTTP_HOST} ^www.miraclebind.com$
 RewriteRule ^(.*)$ http://www.blueline.com/miraclebind [R=301,L]

Thanks for the help.

Bobby Dean