|
Posted by Steve on July 3, 2008, 9:13 pm
Please log in for more thread options
Guy Macon wrote:
> As a personal learning experience with limited practical use,
> I have been doing some experiments with using .htaccess to
> redirect mis-typed URLs to a preferred canonical form. I have
> set up a test page at [ http://www.guymacon.org/test.html ]
> to show the results of my testing.
>
> Most of the URLs redirect as I want them to do, but the three
> URLS (with "//" instead of "/") in bold do not redirect.
>
> I have searched the web and have not found a single website
> that redirects *all* "//" URLs to "/" URLs.
>
> Given the rarity of this error, a solution that causes a 404
> error rather than a 301 redirect would be fine with me, but I
> haven't seen any websites that manage that one either.
>
> Any suggestions for things to try would be most welcome.
> Thanks!
>
> [ http://www.guymacon.org/test.html ]
>
Haven't tested but this guy's approach looks good on paper if you have
access to PHP (probably easy enough to replicate in any server-side
language):
http://groups.google.com/group/alt.internet.search-engines/msg/9a0f7baad24c74dc
Dunno. It's a nearly 3-year old thread you were actually involved in,
so perhaps it doesn't work.
|