Have a look in Drupal's .htaccess file. There is a commented-out and documented snippet for redirecting www.example.com to example.com, or vice-versa. It is not specific to www redirection, though, and it should be trivial to tweak it to redirect a .com to a .org or vice-versa. Stack a few of them together to handle the www as well for extra awesomeness.
On Saturday 17 May 2008, crocodyl@corpwatch.org wrote:
Thanks! That was really helpful. It looks like since I have my .com and my .org pointing to the same place, there isn't anything I can do, since there wouldn't be anywhere to put the second htaccess file.
Does that make sense?
crocodyl
Randal wrote:
Here's a tutorial I have used before to do this sort of thing:
http://daringfireball.net/2006/05/htaccess_redirection
-- Randal
At 5:29 PM -0700 5/15/08, crocodyl@corpwatch.org wrote:
Hi,
I am wondering if anyone could direct me to a tutorial that illustrates how to get a example.com to redirect to an example.org. Can this be done from within Drupal by editing a file?
I have edited the httaccess file before so that example.org redirects to www.example.org and my gut tells me that I could do the same to redirect from example.com and www.example.com to www.example.org as well. I just don't know what code to put in there.
Any links on how to do this are greatly appreciated.
crocodyl
-- [ Drupal support list | http://lists.drupal.org/ ]