new file: .htaccess

new file:   public/htaccess
main
joker 3 years ago
parent 77266f4573
commit 0105ce4dd0
  1. 23
      .htaccess
  2. 23
      public/htaccess

@ -0,0 +1,23 @@
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<Files send.php>
Deny from all
</Files>
<Files void.php>
Deny from all
</Files>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^https://blogbaster.xyz/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.html$ https://blogbaster.xyz/ [R=301,L]
RewriteRule ^index.html$ / [QSA,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^.*$ $0.php [L,QSA]
RewriteCond %{THE_REQUEST} ([^\s]*)\.html(\?[^\s]*)?
RewriteRule (.*) %1 [R=301,L]

@ -0,0 +1,23 @@
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<Files send.php>
Deny from all
</Files>
<Files void.php>
Deny from all
</Files>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^https://blogbaster.xyz/
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.html$ https://blogbaster.xyz/ [R=301,L]
RewriteRule ^index.html$ / [QSA,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^.*$ $0.php [L,QSA]
RewriteCond %{THE_REQUEST} ([^\s]*)\.html(\?[^\s]*)?
RewriteRule (.*) %1 [R=301,L]
Loading…
Cancel
Save