OsArts / stack

Using or seeking for stack techologies.
0 stars 1 forks source link

Settings .htaccess #55

Open vovs03 opened 5 years ago

vovs03 commented 5 years ago

Settings .htacess

<Limit GET POST>
# order allow, deny
allow from all
deny from 185.130.207.239
</Limit>
vovs03 commented 5 years ago

217.118.79.36 - - [19/Jan/2019:19:00:35

vovs03 commented 4 years ago

:earth_africa: Apache .htaccess

Redirect

https://httpd.apache.org/docs/2.4/rewrite/remapping.html

vovs03 commented 4 years ago

:a:

<If "%{SERVER_PROTOCOL} != 'HTTPS'">
    Redirect "/admin/" "https://www.example.com/admin/"
</If>

:b:

<If "%{SERVER_PROTOCOL} != 'HTTPS'">
    Redirect "http://baraban16.ru/" "https://www.baraban16.ru/"
</If>

:warning: :warning: :warning:

### ===== 2019-10-07
<If "%{SERVER_PROTOCOL} != 'HTTPS'">
    Redirect "http://baraban16.ru/" "https://www.baraban16.ru/"
    Redirect "http://www.baraban16.ru/" "https://www.baraban16.ru/"
</If>

### =====