diff --git a/.gitignore b/.gitignore index 03c88fd..67dac66 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .htaccess +.gitlab-ci.yml diff --git a/.htaccess b/.htaccess index 0a44291..f0c80cd 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,7 @@ +AuthType Basic +AuthName "Your authorization required message." +AuthUserFile /home/dev/.htpasswd +require valid-user #RewriteCond %{HTTPS} !=on #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] diff --git a/.htaccess~12451c3cc16932eaea10491a1f7d244df9da449c b/.htaccess~12451c3cc16932eaea10491a1f7d244df9da449c new file mode 100644 index 0000000..0a44291 --- /dev/null +++ b/.htaccess~12451c3cc16932eaea10491a1f7d244df9da449c @@ -0,0 +1,7 @@ +#RewriteCond %{HTTPS} !=on +#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] +RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] +RewriteRule ^(.*)$ https://%1/$1 [R=301,L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*) index.php