Custom 404 error script, content based on keyword criteria

Discussion in 'PHP' started by activeimedia, Sep 12, 2006.

  1. #1
    Does anyone know of a script that will create a dynamic page based on referring URL keyword from google/yahoo/msn? thanks
     
    activeimedia, Sep 12, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mad4, Sep 13, 2006 IP
  3. activeimedia

    activeimedia Well-Known Member

    Messages:
    920
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Yeah, basiclly I have alot of traffic coming from an old domain (which is aliased to a new domain), being sent to default 404 error page. Most of that traffic is searches via google for celebrity photo albums. I want to be able to have my 404 error page see those keywords, and show ads accordingly. Think what you linked me to might work.
    Thanks in advance.
     
    activeimedia, Sep 13, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This would be a very short term solution. Google will quickly de-index the pages if you start redirecting them elsewhere.

    Why not just set up static pages the same as the old ones but on the new domain? 301 the old pages to the new pages.
     
    mad4, Sep 13, 2006 IP
  5. Mrblogs

    Mrblogs Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Instead of using 404.. why not use an Apache Mod_Rewrite to display an "informational" page?

    By getting all "non existent files and directories" (-f -d if i recall) redirected to another page.. you can essentially show what you want, without it coming up as a "None existing page", and thereby increase the content of your website.
     
    Mrblogs, Sep 13, 2006 IP