SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    844
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Pretty URLs are causing 404 errors in Google Webmaster Tools

    I use modRewrite to make URLs like:

    example.com/stories/23212/my-story-title-goes-here

    But I've noticed lately that the Google Webmaster Tools is finding a lot of pages that don't really exist. For example, privacyPolicy.php resides on the root, and yet Google thinks it resides on example.com/stories/privacyPolicy.php, therefore its throwing 404 errors. And they are starting to accumulate quickly:

    example.com/stories/23212/privacyPolicy.php
    example.com/stories/23213/privacyPolicy.php
    example.com/stories/23214/privacyPolicy.php
    example.com/stories/23215/privacyPolicy.php

    Would this best be resolved by changing my footer links to use the full URL? Like http://www.example.com/privacyPolicy.php.

    Thanks!
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Its probably because you are using relative link. You should use either root absolute or FQD absolute. Or even using the base html element would work.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

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