I think i understand.
i have these domains:
www.lemurgene.com
lemurgene.com
www.lemurgene.net
lemurgene.net
www.lemurgene.org
lemurgene.org
but i want them all to redirect to the same site, so if someone types in:
lemurgene.org
they are taken to www.lemurgene.com
and if they type in:
lemurgene.org/contests
they are taken to
www.lemurgene.com/contests
What I did was use the apache virtual host option to make this work.
<VirtualHost xxx.xxx.xxx.xxx>
DocumentRoot /document-root-here/redirect/
ServerName lemurgene.org
ErrorDocument 404 /404.php
DirectoryIndex index.php index.htm index.html
AddType text/html htm
AddType application/x-httpd-php .php .inc
</VirtualHost>
and under /document-root-here/redirect/
i have the files:
index.php
404.php
here are the contents:
index.php:
<? header("Location: http://www.lemurgene.com"); ?>
404.php:
<? header("Location: http://www.lemurgene.com".$REQUEST_URI); ?>
so if you hit the default doc, it will redirect you to the root of the site you want, and if you type in something like lemurgene.org/contests, it will automagically hit the 404 page and that will redirect you to www.lemurgene.com/contests..
any other ?'s, let me know..