Hey, guys! I've changed the name of one of my sites and therefor also the domain name. And I was wondering if there's any way to redirect the whole old domain to the new domain? The old domain is dashadyboard.com and the new domain is hiphopdefined.com. And this is what I want to do. No matter what you type after dashadyboard.com (ie. dashadyboard.com/pagename1.php, dashadyboard.com/forumdisplay.php?f=37, etc etc), I want you to be redirected to the new domain hiphopdefined.com/forum. So if you're trying to access a thread on the old domain, you should just be redirected to the new domain's home page. Is this possible to do in any way?
Do you use a control panel such as CPanel ? There will be an option "redirects" where you can setup a redirection. OH, almost missed a point - if I'm not mistaken, you can also forward a domain from your domain control panel.
a "301 redirect" is the best way to keep your site in check with Google. And to forward what you need.. you can even use a .htaccess file to do the same.
lol yeah I tried the cpanel option, but it didn't redirect the whole domain. I have to manually add every page that I want to be redirected. Could you please explain to me or show an example of the code I need to use to do this?
Your .htaccess should look something like this: RewriteCond %{HTTP_HOST} ^www.oldhost.com RewriteRule ^(.*)$ http://www.newhost.com/$1 [r=301,L] Code (markup): That should do the trick..
Nope, that didn't work for some reason. Nothing happens EDIT: This one worked though Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] Code (markup):