diff --git a/app/Bootstrap.php b/app/Bootstrap.php index c3682db..7077c4d 100644 --- a/app/Bootstrap.php +++ b/app/Bootstrap.php @@ -44,7 +44,7 @@ ini_set('session.cookie_secure', '1'); session_start (); mb_internal_encoding ("UTF-8"); -/** Language **/ +//Language $langTag = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); $langMng = new LanguageManager($langTag); $langMng->load(); diff --git a/public/.htaccess b/public/.htaccess index e69de29..f2f4481 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -0,0 +1,18 @@ +Options -Indexes +Options -MultiViews -Indexes + +RewriteEngine On +RewriteBase /vasek/home-update/public/ + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !.css +RewriteCond %{REQUEST_FILENAME} !.js +RewriteRule (.*) index.php?url=$1 [QSA,L] + +RewriteCond %{HTTPS} off +RewriteCond %{REQUEST_FILENAME} !api.php +RewriteCond %{REQUEST_FILENAME} !apiFront.php +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + +AddType application/x-httpd-php .php .phtml