I changed a bulky, complex website into a small one-page website, so users need to be redirected from 404s to index.html.
I put this in .htaccess:
ErrorDocument 404 /index.html
If you type mydomain.com/lalalalala, this redirects to the home page content (mydomain.com/index.html), but the URL bar still says mydomain.com/lalalalala.
How do I redirect 404s to index.html and rewrite the URL to mydomain.com?
EDIT:
I'm using Bluehost.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…