Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php header question

    Hello all

    I'm webmaster of a website and got quite a suprise rencently. I had a site running for a long time then I decided to update it to a free games sites.

    I got some bad surprise rencently, lots of old request of the older site make duplicate false pages in google :

    http://www.google.com/search?q=site:...hl=en&filter=0

    if you look there's a results like www.danerd.com/?Show=media_prev&id=2632 from the older site but it get cached by google as duplicate of the index page.

    but good pages like www.danerd.com/game.html?id=13858 must be cached by google. So I'm just trying to set my php header so that all /?something get back to www.danerd.com except for game.html?id=13858 ... but doesn't seems to work. Any clue someone please ?

    thanks

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    have you considered using mod rewrite to achieve this. If you do want to use php still then can you show the code that is failing?
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •