Forum Moderators: phranque
I am using this mod-rewrite code to access my cms` s gateway script, which is written in python. It works so far.
RedirectMatch permanent ^/$ /blog/
RedirectMatch permanent ^/blog$ /blog/
RewriteEngine on
RewriteBase /
RewriteRule ^blog(.*) /cms/gateway.cgi$1 [L,NE]
RewriteRule ^$ /cms/gateway.cgi/ [L]
With this voodoo everything is served with the URL /blog/, which is also the cache.
How can i set up a second redirect and rule for the folder /blog/registry/ and the gateway file register.cgi?
I have tried various combinations but i don' t know how to handle a directory plus sub-directory with mod-rewrite. How can this be done?