Answer the question
In order to leave comments, you need to log in
404 error with no change in address bar?
Hello
There is a site, let's say site.ru, if you go to a non-existent page, for example site.ru/ololo01, it automatically redirects to site.ru/404. I need that when I go to a non-existent page, for example site.ru/ololo01, NOT the site.ru/404 page opens, but directly on the non-existent site.ru/ololo01 page, the inscription 404 appears on this page. Without redirects to the site.ru/404 page .
I summarize
We go to site.ru/ololo01 the page does not exist => redirects to site.ru/404 BAD
We go
to
site.ru/ololo01 the page does not exist => the code 404 appears on the same page without changing the address bar non-existent pages were displaying a 404 error with no change in the address bar
site.ru/ololo01 -> site.ru/404 Bad
site.ru/ololo01 -> site.ru/ololo01 Good, my 404 image appears
Answer the question
In order to leave comments, you need to log in
There is a site, let's say site.ru, if you go to a non-existent page, for example site.ru/ololo01, it automatically redirects to site.ru/404.
ErrorDocument 404 http://example.com/404.html
ErrorDocument 404 /404.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question