[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#391290: marked as done (apache should automatically detect extra periods/commas at the end of URLs and fix)



Your message dated Fri, 6 Oct 2006 00:10:13 +0200
with message-id <200610060010.13876.sf@sfritsch.de>
and subject line Bug#391290: apache should automatically detect extra periods/commas at the end of URLs and fix
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache2
Version: 2.0.55-4.1
Severity: wishlist

Many people type in URLs with extra periods or commas. For example, a
user may type:
   http://www.jspiro.com/wiki.
when they actually meant to type:
   http://www.jspiro.com/wiki

This causes a lot of 404 errors on web servers everywhere. Would it be
possible for apache to automatically detect extra periods/commas at
the end of URLs and redirect clients to the correct place?

Regards,
Jason

--
Jason Spiro: computer consulting with a smile.
I also provide training and spyware removal services for homes and businesses.
Call or email for a FREE 5-minute consultation. Satisfaction guaranteed.
416-781-5938 / Email: info@jspiro.com / MSN: jasonspiro@hotmail.com


--- End Message ---
--- Begin Message ---
On Thursday 05 October 2006 22:15, Jason Spiro wrote:
> Many people type in URLs with extra periods or commas. For example,
> a user may type:
>     http://www.jspiro.com/wiki.
> when they actually meant to type:
>     http://www.jspiro.com/wiki
>
> This causes a lot of 404 errors on web servers everywhere. Would it
> be possible for apache to automatically detect extra periods/commas
> at the end of URLs and redirect clients to the correct place?

This can be done with mod_speling or with something like

RewriteRule ^(.*)[,.]$ $1 [R]

though the latter will prevent you from requesting any file ending 
with period or comma. With some more refined rewrite magic using 
subrequests, you can probably avoid that.

However, by default Apache should return exactly what was requested. 
Therefore I close this bug.

Cheers,
Stefan



--- End Message ---

Reply to: