RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] #See if we are http or https SetEnvIfNoCase HTTPS "on" protocol=https SetEnvIfNoCase HTTPS "off" protocol=http RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/examination_copy RewriteCond %{REQUEST_URI} !^/wait_list RewriteCond %{REQUEST_URI} !^/rosters RewriteRule . http://www.sleeter.com:8080/VirtualHostBase/%{ENV:protocol}/www.sleeter.com:%{SERVER_PORT}/VirtualHostRoot/%{REQUEST_URI} [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L]