Jump to the post that solved this thread.
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 8 Months, 3 Weeks ago redirect invalid forum and invalid thread to home page or index?
#6
Solved: 8 Years, 8 Months, 3 Weeks ago
Try this in your .htaccess. I would put it above any Google SEO code, but below rewrite engine on.

ErrorDocument 404 /index.php

If that doesn't work out, or optionally... Make your custom 404.html as:
<html>
<head>
<meta http-equiv="refresh" content="3; url=http://example.com/">
<title>Page doesn't exist. Redirecting you to homepage...</title>
</head>
<body>
Page doesn't exist. Redirecting you to homepage...
<br>
</body>
</html>
Content is the # of seconds before it will redirect. Set to 0 to make it immediate.

(obviously change example.com to your domain name.)
Jump to the post that solved this thread.


Messages In This Thread
RE: redirect invalid forum and invalid thread to home page or index? - by DrXotick - 2014-05-11, 09:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)