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

Fix 404.html to be deployed via Netlify #10

Open
pizofreude opened this issue Dec 21, 2022 · 1 comment
Open

Fix 404.html to be deployed via Netlify #10

pizofreude opened this issue Dec 21, 2022 · 1 comment

Comments

@pizofreude
Copy link
Owner

Describe the bug
The 404.html is currently WIP.
Only index.md is successfully being deployed. Trying the 404.html will direct to default Netlify 404 instead of the designated one.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://otp-verification-system.netlify.app/404'
  2. See error 404 shown is the default version by Netlify.

Expected behavior
It is expected that the designated 404.html is shown when wrongly type the website address.

Screenshots
This is Netlify default 404.
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
This issue is intended to be beginner friendly.
Please find the possible solution in this link for implementation.

@Manoj-Athi
Copy link

Hi, To overwrite the default 404 error page provided by netlify, create a netlify.toml file in the root directory and add below lines of code. refer here

[[redirects]]
  from = "/*"
  to = "/something.html"
  status = 404

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

No branches or pull requests

2 participants