Forum Moderators: phranque

Message Too Old, No Replies

mod_speling

Does it really do only one letter?

         

Visit Thailand

5:39 am on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some of my urls are mydomain.com/ThisPage.htm which often creates 404's when somehow someone types in or is directed to mydomain.com/thispage.htm

As I understand it mod_speling cannot correct this because there are two upper case letters (as the correct url should have) - is that right?

Is there any other way of doing this? I cannot do 301's as there are simply too many pages (over 10,000). Any ideas?

keyplyr

9:19 am on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Visit_Thailand - I have mod_speling enabled (I love it) and just tested with 2 caps, worked perfect.

Easy to test, just add this to htaccess:


CheckSpelling On

And try it yourself on a few pages.

I have noticed however, that some misspelled words will resolve directly to the intended page, but when more than one page could match, a sever generated page presents one or more linked choices. This wouldn't be so bad if I could figure out how to customize this page with a style sheet. Anyone know how?

Visit Thailand

11:42 pm on Jan 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks keyplr - you are right it is the number of spelling mistakes which is restricted to just one and not the number of caps.

I would also like to know though how to edit the default page with the random similar links.

Does anyone know if that is possible?

jdMorgan

4:59 am on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



VisitThailand,

I doubt that it's possible; It is a page created by mod_speling itself showing all the possible matches for the request-specific "spelling error". This is just a list of the "closest matches" it found as actual existing files on your server.

I think you're going to need to use a script to solve your problem, or convert all of your filenames to lowercase-only and use an approach similar to this [webmasterworld.com].

Jim