PHP 404 page error

Hi, is there anyone who could help me doing 404 PHP error page? How to do it?

Thanks in advance.

Hi @DevVali welcome to the community.

I don’t understand what you are asking here. Do you have an issue (a) where your code displays a 404 PHP error or (b) are you trying to create a customised 404 PHP page?

If (a) please post a link to your Repl so other users in the community can see your code and suggest some ideas.

Thanks!

Hi, I want how to create customized 404 PHP page, but I don’t know where to start or nor what to do.

Have you had a look at sites like A Beginners Guide to Custom 404 Pages - LCN.com ?

Hope this helps!

1 Like

I have .htaccess but doesn’t work.

Hi @DevVali glad you’ve made more progress than originally suggested.

This isn’t exactly PHP but allows creation of a custom 404 page: GoldenrodPrestigiousTruetype - Node.js Repl - Replit

And anything for PHP web server?

Sorry, I don’t think you can do this. The PHP web server doesn’t respond to .htaccess files.