Forum Moderators: phranque

Message Too Old, No Replies

.htaccess spelling corrector

Is there a way to use .htaccess to check spelling of a url and redirect

         

crookyboy

6:52 pm on Nov 24, 2004 (gmt 0)

10+ Year Member



Is there a way to use .htaccess to check spelling of a url for example:

www.webmasterworld.com/sitema.html

redirect to:

www.webmasterworld.com/sitemap.html

I know you can do this by manually entering all bad spellings of "sitemap" (or whatever) and using redirect to go to the correct page - but is there a way to use the check spelling utility?

I think the answer may involve running a script, but not sure.

Cheers

jdMorgan

7:28 pm on Nov 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Take a look at Apache mod_speling [httpd.apache.org]. It can correct one missing or incorrect character in a URL.

It's also relatively inefficient, and not good on a busy server.

A more efficient way to handle this is to use a custom 404 error document (See ErrorDocument [httpd.apache.org]) and provide a site map for visitors who visit your site from bad links or mis-typed URLs.

Jim

crookyboy

10:47 pm on Nov 24, 2004 (gmt 0)

10+ Year Member



Thanks dude.

storevalley

10:52 pm on Nov 24, 2004 (gmt 0)

10+ Year Member



Take a look at Apache mod_speling

mod_speling ... class :)