LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 06-04-2008, 05:09 PM   #1
ssarrinah
LQ Newbie
 
Registered: May 2008
Posts: 16

Rep: Reputation: 0
how to modify ERROR 404 (html) and put my own page?? mandriva 2006


hi guys,I know I ask too much but it's really important and you're all I have

I created an html page and I want tp replace the ERROR 404 document that appears if you put an url that doesn't exist, I really don't know how to do it!!!!!

there's a directory: /var/www/error
there I can find different pages (ERROR) but they contain just writing and it seems to be complicated I don't wanna do something stupid and end up having a weird page

can somebody help me with this please??!!!!

thanx!
 
Old 06-04-2008, 07:03 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, I think it's here,

/var/www/html/index.html

[edit] did you want to change that error 404 message?

Or put a file inplace so there is no error?

You can edit the error page with Kompozer(kde) to say whatever you like, maybe add links to other places.[/edit]

It's here....

/var/www/error/include/bottom.html

Last edited by GlennsPref; 06-04-2008 at 07:09 PM.
 
Old 06-04-2008, 07:26 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, I seem to be missing the point, to edit the info of the pages that will be displayed find the parts in the text > and <

Between these arrows you can change the text. For each language,

eg. snipet from...
file:///var/www/error/HTTP_NOT_FOUND.html.var

<!--#if expr="$HTTP_REFERER" -->

The link on the
<
a href="<!--#echo encoding="url" var="HTTP_REFERER" -->">referring
page<
/a> seems to be wrong or outdated. Please inform the author of
<
a href="<!--#echo encoding="url" var="HTTP_REFERER" -->">that page</a>
about the error.

<
!--#else -->

If you entered the URL manually please check your
spelling and try again.

<!--#endif -->


and edit the link to your file...

Content-language: en
Content-type: text/html; charset=ISO-8859-1
Body:----------en--
<!--#set var="TITLE" value="Object not found!"
--><!--#include virtual="include/top.html" -->

<!--#endif -->

<!--#include virtual="include/bottom.html" -->

check out this tute...

http://www.pagetutor.com/html_tutor/index.html

Hope that helps.

Last edited by GlennsPref; 06-04-2008 at 07:35 PM. Reason: bad day
 
  


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
LXer: Build 404 error page CGI handler brains LXer Syndicated Linux News 0 09-16-2007 03:51 PM
locolhost errors to a gif file and not a Html 404 error almost000 Linux - Software 5 06-02-2007 02:22 PM
Mandriva 2006, apache not reaching an alliased page uzimadawa Linux - Server 1 12-02-2006 11:36 AM
404 Error Page Not Working newlinuxnewbie Linux - Server 3 09-06-2006 06:52 PM


All times are GMT -5. The time now is 05:41 AM.

Main Menu
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