I’m reinstall server on Ubuntu 20.04 with control panel “Hestia” with php-fpm support. But i have 404 error in front page domain.com/ if i use in .htaccess: All others pages and front page if i add /index ( domain.com/index ) works fine. If I comment this rules – all works and front page too, but i not have my 404
Tag: http-status-code-404
Add 404 rule into PHP class router
I have a simple PHP router but I missed a rule if de file not exists. What I think is I must declare all files to check if the file exist? But this raises another question how to check if the endpoint …
Hide 404 error if url contains specific word / PHP [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question Is it possible to hide the 404 Error in the console if the url contains a specific word? Answer I’m assuming that you’re basically hijacking
How do fix ‘404 page not found’ error when running a php file?
I am just starting to learn php and when I run my php file, no matter the browser, i get a 404 error. What is my code missing that is causing this? This file is supposed to display a message after a user submits a ‘contact me’ form. Answer this code works. see this is firefox: https://i.imgur.com/YeBFt9B.png if you don’t
How to make Ajax POST on PHP MVC using friendly urls?
I’m trying my first PHP MVC project from scratch. Everything is working fine… everything but ajax calls. When I try to POST I get a 404 error, but ONLY using AJAX; I’ve made the same calls using …
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