Forum Moderators: phranque
<?php
if ($QUERY_STRING) {$query = '?' . $QUERY_STRING;}
header("Location: [new.domain...]
?>
[edited 'cause I forgot to remove my own URL the first time]
What kind of server is your old site on? If it's Apache, are you sure they don't support any .htaccess at all? Many do, but don't support mod_rewrite because it's too "powerful and dangerous".
I once used the following single-line .htaccess on my old ISP's "free personal home page" server with good results when I changed ISPs:
Redirect permanent / [mynewdomain.net...]
Note: For username-type domains like "home.widgets.net/~jimbob", use:
Redirect permanent /~username [mynewdomain.net...]
Other than that, get most of your incoming links updated (especially ODP and Yahoo), put up a "Moved - click here" manual link, and hope for the best! You could also try a javascript redirect if you want, but include the manual link too, for the 'bots to follow.
That's what I'd do... YMMV
Jim