Webmaster's Community

Designing and Development => Programming => Topic started by: Tayab on October 20, 2012, 01:12:56 AM

Title: I need to script a PHP redirecting to Homepage script.
Post by: Tayab on October 20, 2012, 01:12:56 AM
How can I make a restriction on to the viewer to send to home page bak if someone types the thing whihc doesn't exist. How it makes sense.


Suppose, I am owning a domain www.example.com and I've got index.html, style.css and nothing else. Simultaneously, if someone types http://www.example.com/games/ and it doesn't even exist, so at typing this URL it takes the viewer back to homepage. Would someone script it with the comments please. :|
Title: Re: I need to script a PHP redirecting to Homepage script.
Post by: rahul on October 20, 2012, 08:29:58 AM
you can check  condition that games page exist or not and for redirection you can use HTTP_REFRRER may be this will work for you
Title: Re: I need to script a PHP redirecting to Homepage script.
Post by: phpdeveloper on October 20, 2012, 08:56:04 AM
we are here to guide you as rahul suggested you can handle that situation . And we provide paid services like that script we are not here to work for you we paid for all this for any solution you  can send private message to me