LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-05-2006, 11:27 PM   #1
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Rep: Reputation: 15
404 Error Page Not Working


I put this in the htaccess file already but it's still showing 'Page cannot be found" what did I do wrong?

ErrorDocument 404 /errorpage.html
 
Old 09-06-2006, 06:37 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
That syntax looks correct according to http://httpd.apache.org/docs/2.0/mod...#errordocument. If you try the URL in your browser does it work (e.g. http://www.yourdomain.com/errorpage.html)?
 
Old 09-06-2006, 07:37 PM   #3
newlinuxnewbie
Member
 
Registered: Sep 2005
Posts: 114

Original Poster
Rep: Reputation: 15
No, it says Page cannot be found.
 
Old 09-06-2006, 07:52 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Then you need to make sure that the file errorpage.html is in the DocumentRoot location and has the same ownership and permissions as the other files in that directory. It mat also be SELinux settings - are you using SELinux?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
404 error using JSP on tomcat jayn16 Programming 2 06-25-2006 02:07 PM
404 page taken over? Keyser Sose Linux - Software 9 01-09-2005 01:26 PM
wget 404 error BarryM45 Linux - General 2 10-12-2004 06:12 AM
404 page not found Darthomir General 2 03-30-2004 10:29 PM
(404)error johncla Linux - Networking 1 03-25-2001 07:09 PM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration