Htaccess redirect code conflicting with mod_speling code

My website pages/folder has lowercase and uppercase letters. My VPS not redirecting if the case are different (previous host did) so I added mod_speling.c in htaccess which is..

<IfModule mod_speling.c>
CheckCaseOnly on
CheckSpelling on

also to redirect directory and its pages like.. to which is..

RedirectMatch temp /one/two/([^/]+)/([^/]+)/$1/

now this RedirectMatch code conflicting with mod_speling, If the url is in lower or upper case it redirects to its previous folder page, not correcting the spelling and opening the page.

I don’t know how to fix this. If I remove the RedirectMatch code, the incorrect URL’s are corrected and opening properly.

Hope my question is understandable. I want the spell check to work and also the directory change. Is there any other codes for Redirectmatch? Please help.

Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.