Hi all,

I have been on my current domain for about 7 months but now thinking about switching to a different domain. The new domain name has a better fit for what I would like the site to be.

Question:
How would I be able to redirect users from my current domain to the new domain assuming all links are going to have the same URL except for the domain name of course. (database will be copied over to the new domain/site)

Example:
Current url: http://www.compshack.com/sql/oracle-minus-operator
REDIRECT TO:
new url: http://www.newdomain.com/sql/oracle-minus-operator

Is this possible or is it just a wishful thinking?

Thanks for your input on this matter.

Comments

bonaparte’s picture

One way of doing it is through domain forward.

--------------------
Sudheer. S
Binary Vibes Information Technologies Pvt. Ltd.
LAMP
Binary Vibes

CompShack’s picture

Domain forward will put a forward on the actual domain but will not forward visitors to the right link, would it?!

-----------------------------------------
Finally, I CMS that I Like!
http://www.CompShack.com

valthebald’s picture

Possible solution is to use settings.php. Create sites/olddomainname/settings.php, but instead of drupal database settings place there php code which will redirect to your new domain with all link parameters.
Important addition - use 301 redirect, not 302!
Regards,
Valery
http://www.valthebald.net