I have the freemagickey.com and the gogomagickey.com domains both pointing to the same Apache server. Any request to the gogomagickey.com domain should currently redirect to http://www.indiegogo.com/magickey-perfect-password-management/.
I have been reading the mod_rewrite docs and looking at what seems to be similar questions on SO and hacking away at my .htaccess with no joy. Either nothing is redirected or both domains are redirected.
Is it possible to do what need with mod_rewrite in .htaccess?
Yes, it's possible, and I believe this should do the trick for you:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} gogomagickey\.com$ [NC]
RewriteRule ^(.*)$ http://www.indiegogo.com/magickey-perfect-password-management/ [L,R=301]
</IfModule>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With