From 0105ce4dd044631444df279d8ff32b33db55f502 Mon Sep 17 00:00:00 2001 From: joker Date: Tue, 14 Feb 2023 22:17:25 +0300 Subject: [PATCH] new file: .htaccess new file: public/htaccess --- .htaccess | 23 +++++++++++++++++++++++ public/htaccess | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .htaccess create mode 100644 public/htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..729648d --- /dev/null +++ b/.htaccess @@ -0,0 +1,23 @@ +RewriteEngine On +RewriteCond %{HTTP:X-Forwarded-Proto} !https +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + + +Deny from all + + +Deny from all + + +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] diff --git a/public/htaccess b/public/htaccess new file mode 100644 index 0000000..729648d --- /dev/null +++ b/public/htaccess @@ -0,0 +1,23 @@ +RewriteEngine On +RewriteCond %{HTTP:X-Forwarded-Proto} !https +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + + +Deny from all + + +Deny from all + + +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]