SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google Webmaster Tools 404 error anomally

    Any clue as to why I get reports from Google webmaster tools for a 404 error that has
    www.prolongroofcare.com/testimonials/
    pointing to
    testimonials/www.prolongroofcare.com/testimonials
    This link does not appear in the page source of the offending page. Only thing I can imagine is it is getting formed by php commands on the server side at some point or via apache mod-rewrite rules but I have no idea how to trace it. Any help would be much appreciated. thanks in advance.
    Last edited by Mittineague; Nov 27, 2013 at 16:01. Reason: delinking example URLs

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    In your header of your page's HTML source, you have this:

    Code:
    <link rel="canonical" href="www.prolongroofcare.com/testimonials/index.php" />
    You need a http:// in that URL. Without the http, the browser is treating it as a relative URL, rather than an absolute URL.

    So actually, the browser thinks the URL is this:
    http://www.prolongroofcare.com/testimonials/www.prolongroofcare.com/testimonials/index.php

    And that returns a 404 page.
    Last edited by Mittineague; Nov 27, 2013 at 22:17. Reason: delinking example URL
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Force Flow View Post
    In your header of your page's HTML source, you have this:

    Code:
    <link rel="canonical" href="www.prolongroofcare.com/testimonials/index.php" />
    You need a http:// in that URL. Without the http, the browser is treating it as a relative URL, rather than an absolute URL.

    So actually, the browser thinks the URL is this:
    http://www.prolongroofcare.com/testimonials/www.prolongroofcare.com/testimonials/index.php

    And that returns a 404 page.
    Thank you so much.
    Last edited by Mittineague; Nov 28, 2013 at 13:09. Reason: delinking example URL


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
  •