tags:

views:

18

answers:

3

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

A: 

mod_rewrite

RewriteRule .* "http\:\/\/www\.redirectdomain\.com\/$1" [R=301,L]
jusunlee
A: 
zod
A: 

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"&gt;
 </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/"&gt;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).

Bryan Denny