so i want to set default error pages for my website, but im having trouble with setting the default 404 page (i havent done any others yet). i am running a lamp server, and put the .htaccess in the root of it (/var/www) and put in it ErrorDocument 404 /error/error404.php but when i type in localhost/inde.php (which doesnt exist) i still get the error 404 page generated by i think apache
DTSCode
0
Light Poster
Recommended Answers
Jump to PostDid you make sure that you have your custom error404 page in the correct directory?
All 10 Replies
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
DTSCode
0
Light Poster
Warrens80
DTSCode
0
Light Poster
Warrens80
DTSCode
0
Light Poster
Warrens80
DTSCode
0
Light Poster
TheJeffMatson
0
Newbie Poster
TheJeffMatson
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.