BleepingComputer.com: Php Redirect

Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Php Redirect

#1 User is offline   Matt169 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 170
  • Joined: 28-February 06

Posted 16 April 2006 - 03:22 PM

is there anyway i can do a 404 error message that displays a "no page here" type message and then redirects after say 5 seconds back to the homepage?

also if it could be a (((a php script)))

i have seen error pages that redirect but not sure if they are php or not - well if its php it will work in all browsers regardless if java or anything is turned on wont it?




Thanks,

Matt.

This post has been edited by Matt169: 16 April 2006 - 03:23 PM


#2 User is offline   ColdinCbus 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 312
  • Joined: 30-June 04

Posted 17 April 2006 - 10:24 AM

You just want to make a 404.php http://www.devarticles.com/c/a/Apache/Cust...ments-with-PHP/

Now if you are wanting to add 404 capabilities within your php script, then that is a little more complicated. Essentually you have to build into your script a error handling function that checks to see if that input variable exists. Upon failure, it displays a 404 message.

#3 User is offline   Matt169 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 170
  • Joined: 28-February 06

Posted 19 April 2006 - 11:52 AM

thanks :thumbsup:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users