17 lines
475 B
ApacheConf
17 lines
475 B
ApacheConf
RewriteEngine On
|
|
RewriteCond %{HTTPS} !=on
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
RewriteCond %{DOCUMENT_ROOT}/public/$1 -f
|
|
RewriteRule ^(.*)$ /public/$1 [L]
|
|
|
|
# TDD test rule for mod_proxy
|
|
RewriteRule ^api/health-proxy$ http://127.0.0.1:3011/api/health [P,L]
|
|
|
|
RewriteCond %{REQUEST_URI} !^/index\.php$
|
|
RewriteCond %{REQUEST_URI} !^/info\.php$
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*)$ /index.php [L,QSA]
|
|
|