![]() |
FAQ/Help |
Calendar |
Search |
#1
|
|||
|
|||
Hello Guys
I have been serving Google adverts on my POD directory. But I got an email from Google to say that I cannot serve their adverts on error pages. Whenever someone types in a partial url pod displays an error message. To comply with the Google conditions I need to redirect to a custom error page that I can serve without the Google adverts. I have had to remove Google adverts from my Pod directory as an interim fix ![]() Can someone please help with the cgi code to achieve this? Kind Regards Kevin |
#2
|
|||
|
|||
I found a rough and ready fix
![]() I changed: } else { $pod_validpage=1; $pod_status=$pod_res->status_line; $pod_output="$pod_output<h3>POD encountered the following error while trying to run: $pod_status\n"; $pod_output="$pod_output Attempted retrieval URL: $pod_url</h3>\n\n"; } for: } else { use CGI qw/:standard/; my $url = 'http://www.australian1.com/services/error.html'; print redirect($url); } It would be nice to have this in podvars rather than changing the program ![]() |
Reply |
|
![]() |
||||
Thread | Forum | |||
Any bipolar ADDs out there, I've got a med question | Attention Deficit Disorder (ADD/ADHD) | |||
New server isn't serving very well | Community Feedback & Technical Support | |||
DocJohn's Error Page | Other Mental Health Discussion | |||
It all adds up | Depression |