|
Home > Archive > Apache Server configuration support > November 2004 > mod speling alternative
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mod speling alternative
|
|
| scott l ferri 2004-11-18, 8:48 pm |
| can anyone give me ideas for other ways of handling this situation.
user wants mod-speling activated because it would be far to cumbersome to
look for and correct all case sensitivity issues. It does work for this but
if you have a bad link and it finds 1 page close enough it redirects the
user to it and displays it without prompt. If it finds more than one it
gives the user a list of alternatives. My user wants the latter of
displaying a list but does not want to force the person to a page.
any ideas??
| |
| Joachim Ring 2004-11-22, 5:53 pm |
| "scott l ferri" <sferri1@nycap.rr.com> wrote in message news:<AKcnd.3864$1u.1158@twister.nyroc.rr.com>...
> can anyone give me ideas for other ways of handling this situation.
> user wants mod-speling activated because it would be far to cumbersome to
> look for and correct all case sensitivity issues. It does work for this but
> if you have a bad link and it finds 1 page close enough it redirects the
> user to it and displays it without prompt. If it finds more than one it
> gives the user a list of alternatives. My user wants the latter of
> displaying a list but does not want to force the person to a page.
>
> any ideas??
well, forcing the display of a list even with one probable result is
probably a trivial patch, so use the source.
besides that you could have a little script go through the webroot and
move all files to lowercase names. after that, it's just
RewriteEngine On
RewriteMap tolower int:tolower
RewriteRule (.*) ${tolower:$1}
to make every uri-path all lowercase and thus take care of window-isms
without the typo-effect.
joachim
| |
| Joachim Ring 2004-11-29, 2:52 am |
| "scott l ferri" <sferri1@nycap.rr.com> wrote in message news:<AKcnd.3864$1u.1158@twister.nyroc.rr.com>...
> can anyone give me ideas for other ways of handling this situation.
> user wants mod-speling activated because it would be far to cumbersome to
> look for and correct all case sensitivity issues. It does work for this but
> if you have a bad link and it finds 1 page close enough it redirects the
> user to it and displays it without prompt. If it finds more than one it
> gives the user a list of alternatives. My user wants the latter of
> displaying a list but does not want to force the person to a page.
>
> any ideas??
well, forcing the display of a list even with one probable result is
probably a trivial patch, so use the source.
besides that you could have a little script go through the webroot and
move all files to lowercase names. after that, it's just
RewriteEngine On
RewriteMap tolower int:tolower
RewriteRule (.*) ${tolower:$1}
to make every uri-path all lowercase and thus take care of window-isms
without the typo-effect.
joachim
|
|
|
|
|