h5bp/html5-boilerplate — Issue #1008: Inbound Link Correction via htaccess
Author: VSEphpbb
Created: 2012-03-04 20:43:20+00:00
State: open

It might be beneficial for the htaccess to add some measures to deal with bad urls stemming from inbound links from poor markup or malicious intents.

For example, I have several duplicate title issues reported at Google's Webmasters Tools because of issues where incoming links to my site have bogus characters following the filename.

Example:
mysite.com/index.php/div
mystite.com/index.php/1.html

Those characters following the .php extension are being added by somebody else on the inter webs, for whatever reasons.

I think it would be cool if the htaccess had a means of removing this stuff - i.e.:
-additional directory paths appended to filenames (/logo.jpg/)
-trailing punctutation
-multiple contiguous slashes in URL
-comma(s) or multiple filetype delimiter periods

There is a pretty complex (for me) htaccess write up to address these and many more "bad url" issues here:
http://www.webmasterworld.com/apache/3208525.htm

I think it'd be great if H5BP incorporated some of these concepts.