Welcome Guest, Not a member yet? Register   Sign In
404 error
#1

[eluser]Bigil Michael[/eluser]
i would like to show a 404 page not found error, when the customer searches an item which is not found. Now it shows some php error
for better understanding got to the url given below

Code:
http://www.citykhoj.com/restaurants/view_ratings/47/36/tagliatelli-with-roasted-squash-pine-nuts-and-spinach.html
.
the reason for error is that "the product not available in table".

here i want to show page not found error.

can anyone help me?????
#2

[eluser]Bigil Michael[/eluser]
can any one help me?????
#3

[eluser]InsiteFX[/eluser]
CodeIgniter Users Guide - Error Handling
#4

[eluser]Bigil Michael[/eluser]
this link shows how to show 404 error. I would like to know how to redirect to 404 error page when any php error comes like this

Code:
http://www.citykhoj.com/restaurants/view_ratings/47/36/tagliatelli-with-roasted-squash-pine-nuts-and-spinach.html
#5

[eluser]InsiteFX[/eluser]
.htaccess nd html
Code:
ErrorDocument 404 /errors/notfound.html

I think if you make a file with this line at the top, and make ur 404's go to that file, it'll redirect to the home page. The number is the delay.

<meta http-equiv="Refresh" content="5; URL=www.domain.com">

ErrorDocument 404 /path/to/your/error/file/or/script

#6

[eluser]Bigil Michael[/eluser]
i have tried this by writing the line

Code:
ErrorDocument 404 /errors/notfound.html

in .htaccess file

but id did not solved my problem.
#7

[eluser]Bigil Michael[/eluser]
actually the error is coming from google

if i search 'citykhoj' on google will get some links. when i click on that links it will show php error. the reason for error is that the items are not available in the tables. that's why i decided that to show a 404 error if the link is not correct.
can u solve this issue????

#8

[eluser]Bigil Michael[/eluser]
any one solve my problem ???
#9

[eluser]aeternuslibertas[/eluser]
il be honest, reading thru this post, you seem very demanding, perhaps thats why no one is taking their time to actually help you Smile
#10

[eluser]aeternuslibertas[/eluser]
do you see my point??!?? Tongue




Theme © iAndrew 2016 - Forum software by © MyBB