Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 404 header in error response, now handles 404s in a SEO friendly way #450

Closed
wants to merge 3 commits into from

Conversation

gguillen
Copy link

Added a 404 header response to the error controller index method. Modified the Application class to handle 404 errors without redirecting to a page.

gguillen added 3 commits June 21, 2014 18:54
It is best practice to send a 404 code if a page cannot be found.  If the header is sent as a 200 code, search engines may erroneously index the page.
It is best practice to handle a 404 page without redirection.  If a path could not be found, load the error controller and send them to the contents of the index.
@panique panique closed this Jun 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants