bad incoming links with period at end, how to modrewrite?

Discussion in 'Site & Server Administration' started by kpmedia, Jan 10, 2010.

  1. #1
    I've really worked hard to do 301 redirects for common bad URL requests, and I'm mostly left with 404's created from bad incoming links on other sites, where there is a period at the end of the URL. The URL is valid, save for the period.

    For example:

    I would imagine this is caused by the URL being at the end of a sentence, and the auto-linking in the software or CMS doesn't know any better.

    Does anybody know what sort of "strip end period" code could be created for this?

    It needs to be for any URL, any length, an number of folders (or lack thereof) -- just remove a final period at the end of any URL.

    Looking for something to add to my .htaccess file
    (a mod_rewrite based code only, I'm using Micronovae IIS Mod Rewrite in IIS6 -- no Apache-only redirect code).

    Any ideas? :) :confused:


    .
     
    Last edited: Jan 11, 2010
    kpmedia, Jan 10, 2010 IP