Using custom 404 error page in IIS for SEO-friendly URLs

Discussion in 'Search Engine Optimization' started by winsoar, Mar 30, 2008.

  1. #1
    Is it OK to use the custom 404 page in IIS to make a seo-friendly URL?

    Ie.

    thisdomain.com/display.asp?a=1&b=2&c=3

    could become:

    thisdomain.com/men/coats/ben-sherman-jacket-p-154.html
     
    winsoar, Mar 30, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should be doing this anyway, and not for your 404 page. The 404 is delivered if the page or file cannot be found. The link won't matter if it's www.example.com/pid=54864143 or www.example.com/oops/ - it'll still get the same 404 error message sent to the user.

    What you want to do is make that 404 error as user friendly as possible. Something like this, for example:

     
    Dan Schulz, Mar 31, 2008 IP
  3. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #3
    What I want to do is use the 404 error handler to return the correct page by examining the URL entered.

    Will the server response be correct or will Google detect that the page is being handled by the 404 handler?
     
    winsoar, Apr 5, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What do you mean by "return the correct page"? What if "the correct page" doesn't even exist? What would you do then? The best you can do is use a template like the one I posted earlier and use an HTTP referrer to inform Google and the other search engines that the page or file doesn't exist so they can remove it from their indexes (if the page was deleted) or not even try to crawl it in the first place.

    If the page was MOVED (such as the page was renamed) then a 301 redirect would be the proper HTTP referrer to use.
     
    Dan Schulz, Apr 5, 2008 IP
  5. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #5
    Sorry you don't understand what I'm asking.
     
    winsoar, Apr 5, 2008 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Actually, I'm pretty sure I do. If I read your posts correctly, you want to rewrite a 404 URL simply cannot be done (but it can be faked). To make a long story short, the link that a person types in is the link that will be used in your server's error logs (and shown in the browser's address bar) - there's no way around it unless you redirect the user to a specific 404 error page, like so:

    I go to www.example.com/blahblahblahblah.html
    The server tries to access the file but can't find anything.
    It then sends a 404 error, which gets forwarded via a 301 redirect (actually a 302 redirect might be better here) to www.example.com/error-page/
    The custom error page tells the user that the page or file couldn't be found.

    This isn't the 404 at work here. It involves using a 301 (or 302) redirect to point the user to a specific error page which happens to have an SEO friendly URL.
     
    Dan Schulz, Apr 5, 2008 IP
  7. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #7
    What does google think about 301 or 302 redirects. Are there any web tools I can use to check what headers are being sent?
     
    winsoar, Apr 5, 2008 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #8
    They're perfectly acceptable to Google if used properly. Just don't try stuffing any keywords in the rewritten URLs if you're using them to forward someone to an error page.
     
    Dan Schulz, Apr 5, 2008 IP
  9. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #9
    Does Google still index the page with the original URL or would they index the rewritten one?
     
    winsoar, Apr 6, 2008 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #10
    They will index the new one and remove the old one from their index.
     
    Dan Schulz, Apr 6, 2008 IP
  11. LogicFlux

    LogicFlux Peon

    Messages:
    2,925
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
    #11
    LogicFlux, Apr 6, 2008 IP
  12. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #12
    Can I make the error 404 page stream the correct page as if the old (or non-existant) page is valid?

    I can't install any server-side software as I'm on a shared host.
     
    winsoar, Apr 7, 2008 IP
  13. kakakaka

    kakakaka Banned

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    please give me the process for creating this custom pages
     
    kakakaka, Apr 7, 2008 IP
  14. LogicFlux

    LogicFlux Peon

    Messages:
    2,925
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
  15. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #15
    Cheers LogicFlux.
     
    winsoar, Apr 8, 2008 IP