Mod Rewrite

Discussion in 'Search Engine Optimization' started by Sygon, Apr 23, 2008.

  1. #1
    My site uses mod rewrite and the links are all mod rewrite yet it index's the pages with the php variables for example ?view= and not /view/ :/

    Any ideas?
     
    Sygon, Apr 23, 2008 IP
  2. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    I am assuming your pages already were in google with the old style ?view= format. Put some 301 mod rewrite rules in to the newly formatted URLs.
     
    itcn, Apr 23, 2008 IP
  3. wissam

    wissam Well-Known Member

    Messages:
    2,289
    Likes Received:
    78
    Best Answers:
    1
    Trophy Points:
    185
    #3
    Corectly, Google bot is not crawling pages instantly and it happens by luck once a week ;)
     
    wissam, Apr 23, 2008 IP
  4. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #4
    If your pages are already in the index as ?view=, and you just created a mod rewrite rule to point to the new urls, *google will never pick them up*. As long as the ?view= pages do not return 404s or 301s, google has no reason to remove them from the index, and google will not pick up the new urls because they are duplicate content on the same domain.

    You have to create either 301 redirects (recommended) or 404s for the old urls to remove them from google's index.
     
    itcn, Apr 23, 2008 IP
  5. wissam

    wissam Well-Known Member

    Messages:
    2,289
    Likes Received:
    78
    Best Answers:
    1
    Trophy Points:
    185
    #5
    Thats true, I am having this problem too, my old php pages still bringing traffic to my wordpress.
     
    wissam, Apr 23, 2008 IP
  6. Sygon

    Sygon Peon

    Messages:
    439
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for your help I will do it and see if it works.
     
    Sygon, Apr 24, 2008 IP