Unknown Page ->> Home

Discussion in 'Server & Community Management' started by ZionFlame, May 17, 2015.

  1. Hi All,

    I was wondering if it was possible to route all unknown pages on my server (www.example.com/therandomunknownextentionhere) to the homepage. That way people don't get the ugly Apache unknown page thing.

    If anybody knows if this is possible, and how to do it, that would be great.

  2. Make a 404.html (or 404.php) page.
  3. I think it's the .htaccess you put it in?

    So in your .htaccess you would put:

    Code (Text):
    ErrorDocument 404 /your/error/page/location.php
    Then that would send them to the specified page whenever they go to an unknown page.

    You can also do this with other errors, just replace the 404 with whatever error you want.