redirect individual page only to new site

Y

yoaussie

Guest
hi guys,

I need to redirect sitename.c0m/blue-bananas.html to newsite.c0m. I only want to redirect this page, not the entire sitename.c0m domain. How do I do this in php?

And, is it possible to send sitename.c0m/red-bananas.html to anothernewsite.c0m as well as the blue-bananas.html redirection?

I appreciate any help!

Cheers,
YoAussie
 
Sure...

If your page is in html like you said above there's no need to redirect using php.

Just copy and paste this code into the page you want to redirect.

Code:
<html>
<head>
<title>Redirecting...</title>
<META HTTP-EQUIV=Refresh CONTENT="0; URL=http://www.newsite.com/">
</head>
<body>
</body>
</html>
 
I tried posting a code for you, but the forum blocked it.

wealthy's will work just fine for you.
 
You could also do a .htaccess redirect.

Create a .htaccess file and put the following code in it

Code:
RewriteEngine on
RewriteRule blue-bananas.html http://www.newsite.c0m
RewriteRule red-bananas.html http://www.anothernewsite.c0m
 
Back
Top