I have URL rewrite rule:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/sites/
RewriteRule ^([^/]+)/?(.*)$ sites/$1/$2 [NC,L]
When this URL is called: http://example.com/suyash
It internally calls http://example.com/sites/suyash
but keeps the URL as http://example.com/suyash
only. Please note that the folder sites/suyash
actually exists
The issue I am facing is that when I call a URL: http://example.com/Suyash
(Uppercase) it shows a 404 error.
When I use the mod_speling module and add the following to the code:
CheckSpelling On
and now when I call http://example.com/Suyash
it changes the URL to http://example.com/sites/suyash
How do I get it to only change URL from http://example.com/Suyash
to http://example.com/suyash
?