# OpenGnsys Web Console template configuration for Apache. Alias /opengnsys CONSOLEDIR RewriteEngine On # Overrides default CentOS php.ini configuration. php_value short_open_tag on # Redirect HTTP to HTTPS and default configuration. RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] Options -Indexes FollowSymLinks DirectoryIndex index.php AddType octet/stream .pkg # Redirect HTTP to HTTPS and RESTful configuration. RewriteBase /opengnsys/rest/ RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]