Xenobug
May 6 2004, 09:58 PM
Hi!
I'm moving around and renaming a few pages on my site, and I would like to direct viewers to another page if they happen to find an old link.
How do I create a custom error page that will send users to a new page (or have a link to a new page)?
Xenobug
May 6 2004, 10:06 PM
Also, the pages I want to redirect are part of my subdomain. Will it still work?
Alec
May 7 2004, 12:53 AM
Replace your old page with a new file index.php and put the following code:
<?
header("Location: http://yourlink");
?>
Danimal
May 7 2004, 08:07 PM
There's also an option in the CPanel where you can edit your own custom error pages if the page in question isn't an "index" page. It's pretty simple to use, you just type what you want in the text box and there it is. You can also create your own pages as ".shtml" pages and just name them 401, 403, 404, etc. and upload them. That's what I did.
Xenobug
May 10 2004, 09:08 PM

It worked! Thanks for your help!