RewriteCond %{HTTPS} =offRewriteCond %{REQUEST_URI} .*/administrator/.*RewriteCond %{REQUEST_URI} !.*/administrator/index[2-9].php.*RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond %{HTTPS} =onRewriteCond %{REQUEST_URI} .*/administrator/index[2-9].php.*RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule ^(administrator/|bridges/|cache/|components/|editor/|help/|images/|includes/|language/|mambots/|media/|modules/|templates/|tmpr/) - [L]
RewriteRule ^(bridges/|cache/|components/|editor/|help/|images/|includes/|language/|mambots/|media/|modules/|templates/|tmpr/) - [L]
if (!$mainframe->detectSSL()) { $url = filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_URL); $url = $mainframe->secureURL($url, true); mosRedirect($url);}
$mainframe = new mosMainFrame( $database, $option, '..', true );//place the code here....