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 </IfModule>
also to redirect directory and its pages like..
domain.net/one/two/three/four to domain.net/one/two/three/ which is..
RedirectMatch temp /one/two/([^/]+)/([^/]+)/ http://domain.net/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.