vchris 3 Posted November 30, 2010 Report Share Posted November 30, 2010 I have 1 main domain and 1 addon domain. I'd like that when a visitor goes to maindomain.com it redirects to addondomain.com. The problem I'm having is that my addon domain is a subfolder of maindomain.com so I can't just do redirect / http://addondomain.com. It gives me "The page isn't redirecting properly". Quote Link to post Share on other sites
jeffman 86 Posted November 30, 2010 Report Share Posted November 30, 2010 What you're looking for is not a redirect, but a rewrite rule. Something like this (but not necessarily this) might work:RewriteEngine onRewriteCond %{HTTP_HOST} addondomain.comRewriteRule (.+) path_to_addondomain/$1I've always found these things require a bit of experiment, both for the new thing and also to make sure you haven't messed up something old. Also, make sure everything works for your linked files, like scripts and stylesheets. Google RewriteRule and apache and see what turns up. The apache docs at apache's website are a thorough reference, but not tutorials. Quote Link to post Share on other sites
vchris 3 Posted November 30, 2010 Author Report Share Posted November 30, 2010 I did it with the redirect feature in cpanel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.