View this site in pounds View this site in dollars

Forum help and support

To the forums

404 Error Pages

Page 1 of 1

#1 by bn-images
I am kind of new to this.
Can some one please tell me how to write a 404 page that will redirect traffice back to my homepage, when they get a 404 error

Thanks

bn
Posted on Thursday, 27th September 2007 at 6:05pm
#2 by admin
Hi,

It should be fairly easy job to do. In your hosting directory, there should be a file named 404.php. Edit the contents of the file with a redirect..

Example: Javascript

<script type="text/javascript">
window.location = "http://www.google.com/"
</script>


Example: PHP

<?php
header('Location: http://www.google.com/');
?>

I hope this helps
Posted on Friday, 28th September 2007 at 11:58am

First | Prev | 1 | Next | Last

Displaying posts 1 - 2 of 2

Back to the topic index | To the forums

Your account

Latest News

(RSS)

Wii and DS boost Nintendo profits

26/04/07 - Demand for Nintendo's Wii and DS games machines have brought record profits for the Japanese firm.

YouTube sued for $1bn

14/03/2007 - The entertainment company Viacom Media has announced that it is suing YouTube and its parent company, Google, for $1bn (£517m). Viacom has a vast media network including the TV channels MTV and Nickelodeon and they claim the video sharing site has been showing clips of its shows illegally.

Free Hosting Trial

26/01/07 – Supanet Hosting are pleased to announce a free 90-day web hosting trial. Everyone who signs up to the no obligation trial also stands a chance of winning a 32" LCD TV.