i have an old site im not maintaing anymore, but will be keeping the domain and hosting in the mean time...
its linux php based... what is the best, and easist method for a domain redirect?
thx
i have an old site im not maintaing anymore, but will be keeping the domain and hosting in the mean time...
its linux php based... what is the best, and easist method for a domain redirect?
thx
mod_rewrite
RewriteRule .* "http\:\/\/www\.redirectdomain\.com\/$1" [R=301,L]
With basic HTML you can create a re-direct flash screen:
<html>
<head>
<title>Redirect title</title>
<meta http-equiv="refresh" content="0;url=http://newwebsite.com">
</head>
<body>
<p>
Redirecting to new website!. If you're not redirected within a couple of seconds,
click here:<br />
<a href="http://newwebsite.com/">New Website</a>
</p>
</body>
</html>
However, I'd highly recommend you re-direct via DNS instead of a programmatic solution (in case your host vanishes or any other problems occur).