Skip to content
Advertisement

Tag: http-status-code-404

XAMPP server 404 Page Not Found

I am trying to reuse a php file for aa assignment. So the following line in index.php gives me the error message: 404 Page Not Found The page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our homepage at the link below.

How to create an error 404 page using PHP?

My file .htaccess handles all requests from /word_here to my internal endpoint /page.php?name=word_here. The PHP script then checks if the requested page is in its array of pages. If not, how can I simulate an error 404? I tried this, but it didn’t result in my 404 page configured via ErrorDocument in the .htaccess showing up. Am I right in

Advertisement