Fixing Spelling Mistakes


CheckSpelling on


mod_speling is a useful Apache module that recognizes misspelled URLs and redirects the user to the correct location for the document. mod_speling is able to correct URLs with the wrong capitalization or with one letter missing or incorrect. This is most common when users misspell the URL while typing it in the browser.

For example, if a user requests the file file.html and it is not present, mod_speling will search for a similar document such as FILE.HTML, file.htm, and so on, and if it finds one, will return it. This has a performance impact, but can be quite useful and avoid unnecessary support requests due to broken links.

To enable spelling checks, you can add CheckSpelling on to your Apache configuration, as shown in the example.

Note

If there are several documents that may be a match for the misspelling, the module will return a list of those documents. This could have security implications because you may not want to make some of those files visible.





Apache(c) Phrase Book(c) Essential Code and Commands
Apache Phrasebook
ISBN: 0672328364
EAN: 2147483647
Year: 2006
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net