Jump to content


Photo

how to change error documents like 404,403,500...


  • Please log in to reply
3 replies to this topic

#1 shehroz

shehroz
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 10 August 2006 - 09:44 PM

how the error files can be chaged.
you will see in 404 not found:
the url you requested can not be found. i want to use my own words , how i can do it?


#2 oldmanice

oldmanice
  • Members
  • PipPipPip
  • Advanced Member
  • 134 posts
  • LocationIn Your Garden At Night

Posted 10 August 2006 - 10:29 PM

No that cant be changed
Join my Froums www.phpbbplanet.com/darkwinter

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 10 August 2006 - 10:42 PM

No that cant be changed


False. Of course it can be changed.  Create whatever you want to use as an error page, e.g. 404.html and then create a .htaccess file - placed in the root folder - containing this:

ErrorDocument 404 http://www.yoursitename.com/404.html
Legend has it that reading the manual never killed anyone.
My site

#4 youcantoo

youcantoo
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 11 August 2006 - 10:08 PM

False. Of course it can be changed.  Create whatever you want to use as an error page, e.g. 404.html and then create a .htaccess file - placed in the root folder - containing this:

ErrorDocument 404 http://www.yoursitename.com/404.html


Remember for this to work (.htaccess) they must have the AllowOverride set to "on"

also the the path for the new error document does not have to be an absolute path, it can be a realitive path as well.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users