PDA

View Full Version : Redirect .com -> .org



cooper44
07-15-2006, 04:18 PM
What is the proper .htaccess for redirection a domain?
I recently added two domains and would like the .com domain to be redirected to the .org

Currently I have the following in my htaccess file

Redirect permanent http://www.MYDOMAIN.com/ http://www.MYDOMAIN.org/

And what happens is the domain gets redirected to: www.MYDOMAIN.org/MYDOMAIN/

The redirect adds a nonexistent folder.

What am I doing wrong?

Thanks

John
07-15-2006, 04:22 PM
Do it with PHP:



<?
header("location: http://wherever you want.com/");
?>


Put that in a file called index.php, It's an instant redirect, can't even tell it's redirecting.

:D

Reichling
07-15-2006, 04:50 PM
Make sure you do http://www.yourdomain.com and not just www.yourdomain.com