I have the following line in Apache httpd.conf

RedirectMatch permanent ^/ http://www.mydomain.com/appl/servlet/home.jsp

that automatically redirects visitors of

www.mydomain.com

to a home page of JSP application

http://www.mydomain.com/appl/servlet/home.jsp

Now I want to add a cgi application, which url will be like

http://www.mydomain.com/cgi/bla-bla

and need to update the RedirectMatch value accordantly to NOT redirect cgi requests to the JSP application.

I'm not familiar with syntax of RedirectMatch reg. expressions.

Could you please advice what it should be to redirect only request to

www.mydomain.com
and
http://www.mydomain.com/appl/bla-bla

and NOT requests to

http://www.mydomain.com/appl/servlet/bla-bla
and
http://www.mydomain.com/cgi/bla-bla