Looking to add custom error pages so that non-existant pages forward to main index.php page.
Before I had my own server I'd used the meta refresh tag, but this isn't working. Any ideas.
Looking to add custom error pages so that non-existant pages forward to main index.php page.
Before I had my own server I'd used the meta refresh tag, but this isn't working. Any ideas.
You could simply insert some javascript code in the page to have it auto load the index.php page... should be a piece of cake... just add the following lines in your custom error page.
Naturally, you should remember to replace the domain name with your own.
&Script Language=&JavaScript&&
&!--
setTimeout (&changePage()&, 0);
function changePage() {
self.parent.location= &http://www.yourdomain.com/&;
}
// --&
&/script&
By the way, you could also insert a meta refresh tag in your header... Works just the same.
Good luck
HedgeHog,
I appreciate the input. (kick myself). Helps when you read the directions a little. Custom error pages should be at least 10KB in size. IF they aren't the meta refresh won't work. My pages were only like 1 KB.![]()