I am new to .htaccess and I have found a few articles and I've tried to make it work, but keep failing.
I have the following in my .htaccess file:-
<IfModule mod_ssl.c>
RewriteBase /mydomain.com/
</IfModule>
<IfModule !mod_ssl.c>
RewriteBase /
</IfModule>
RewriteEngine On
RewriteRule ^([^.]*)$ index.cgi/$1 [L]
However, I want to be able to go to mydomain.com/more-info, but this rule is making it mydomain.com/index.cgi/more-info
How can I make is so that "more-info" is exempt from this rule?
Thank you in advance.
So, Ulrich suggested the following...
#if not /more-info
RewriteCond %{REQUEST_URI} !^/more-info$ [NC]
RewriteRule ^([^.]*)$ index.cgi/$1 [L]
...but I still get '404 Not Found'. The more-info directory contains index.htm, and if I turn this RewriteEngine off, it works fine.
You can try this rule: