Forum Moderators: phranque
h**p://www.mydomain.com/nutriton/disease.htm
which should be
h**p://www.mydomain.com/nutrition/disease.htm
I could certainly write some .htaccess redirects to catch people making silly errors like this and send them to the proper page. But really - SHOULD I? I mean, if I set that precedent, I'm really opening pandora's box of trying to catch all misspelled links.
What do you people think?
Do *you* ever do this kind of thing?
In general terms, I don't see a problem with automatic redirection for common mistakes. But if I were you, I'd make sure every redirection was logged, otherwise you risk masking real problems in your site.
You could also do a custom 404 message with some scripting to offer a Google-like "Did you mean..." You're users willl defenately apreciate it!
Of course, I never make spelling mistakes myself ;)
<anecdote>
One morning I came in to find over 1200 404 errors logged and accumulating because a popular entertainment site (i won't name names, but it was the official site of an african-american daytime talk show celebrity best known for "feel good" programming, losing weight, and discovering Doctor Phil) misspelled a URL in a link to our site - by the time I quickly patched a redirect for them, hundreds of visitors saw our 404 page... which thankfully has a "did you mean..." feature!
</anecdote>
I'll check out that speling mod and see if that behaves sensibly enough to be used in this case.
[edited by: httpwebwitch at 8:38 pm (utc) on May 4, 2004]