Forum Moderators: phranque
RewriteEngine on
#
# Ensure that POST requests and requests with query strings are not
# served from the cache.
#
RewriteCond %{QUERY_STRING}"!^$"[OR]
RewriteCond %{REQUEST_METHOD}"POST"[NC]
RewriteCond %{REQUEST_URI}"!^/cms/\w+.cgi"
RewriteRule (.*) /cms/gateway.cgi/$1[PT]
#
# Redirect all missing files to the CGI script
#
RewriteCond %{REQUEST_FILENAME}!-s
RewriteCond %{REQUEST_FILENAME}/index.html!-s
RewriteRule (.*) /cms/gateway.cgi/$1 [PT]