# Redirect Example (TODO)

AddHandler cgi-script .cgi
#
#Alias /cipux-cat-web/CAT/ /usr/share/cipux-cat-web/
Alias /cipux-cat-web /usr/share/cipux-cat-web
ScriptAliasMatch CAT /usr/share/cipux-cat-web/cat.cgi
RewriteLog     /var/log/apache2/rewrite.log
RewriteLogLevel 5
#
<Directory /usr/share/cipux-cat-web>
	Order Deny,Allow
	Allow from All
	Options ExecCGI SymLinksIfOwnerMatch
	DirectoryIndex cat.cgi
	RewriteEngine  on
#	RewriteBase    /cipux-cat-web/
#	RewriteRule    ^CAT/(.*)/tpl/(.*)$  tpl/$2          [L]
#	RewriteRule    ^CAT/(.*)/cat.cgi$   CAT/$1/  [R]
#	RewriteRule    ^CAT/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$  cat.cgi?module=$2   [L,T=application/x-httpd-cgi]
#	RewriteRule    ^CAT/([a-zA-Z0-9_]+)/$  cat.cgi?module=$1   [T=application/x-httpd-cgi]


#	RewriteRule    ^cat.cgi$     cat.cgi [L]
#	RewriteRule    ^cat.cgi(.*)$     cat.cgi$1 [L]
#        RewriteRule    ^(.*).cgi$    cat.cgi?module=$1   [T=application/x-httpd-cgi]
#        RewriteRule    ^(.*).cgi(.*)$    cat.cgi?module=$1$2   [L]
#	RewriteRule    ^$    CAT/          [R]
#	RewriteRule    ^CAT$  CAT/          [R]
#	RewriteRule    ^CAT/cat.cgi$  CAT/          [R]
#	RewriteRule    ^CAT/cat.cgi/$  CAT/          [R]
#	RewriteRule    ^CAT/tpl/(.*)$  tpl/$1          [L]
#	RewriteRule    ^CAT/(.*)$  cat.cgi?module=$1 [T=application/x-httpd-cgi]

</Directory>

#AddHandler cgi-script .cgi
#
#Alias /cipux-cat-web /usr/share/cipux-cat-web
#
#<Directory /usr/share/cipux-cat-web>
#	Order Deny,Allow
#	Allow from All
#	Options ExecCGI
#</Directory>
