scm22ri — 2013-04-20T13:41:59-04:00 — #1
I have a question regarding when making a "page not found" page on your website.
How can I make sure a page doesn't carry the variable that's being got from page to page? Meaning if a user/visitor types something into my URL, how do I make sure that word or key-phrase they type-in doesn't appear on the page itself and make sure they get presented with a "Page Not Found"?
If I type in "whatever" at the end of the URL I get presented with a "Page not found" page and the key-phrase "whatever" dosen't appear on edmunds.com website. How would I make this happen with my website? What do I need to do?
captainccs — 2013-04-20T18:23:41-04:00 — #2
You don't need to. Either Apache finds the page to serve or it doesn't. If it doesn't, you tell it you have custom error pages in .htaccess with, for example:
ErrorDocument 403 /errors/error403.php
ErrorDocument 404 /errors/error404.php
ErrorDocument 406 /errors/error406.php
ErrorDocument 500 /errors/error500.html