fix: cookie loop
This commit is contained in:
1 parent
2e154f4a80
commit
994c49397a
3 files changed
+6
-50
No files matched your search
@@ -42,10 +42,10 @@ Options -Indexes
|
||||
# If request is not a real file, rewrite to .php
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^([a-zA-Z0-9_-]+)$ $1.php [L]
|
||||
RewriteRule ^([a-zA-Z0-9_-]+)$ $1.php [L,QSA]
|
||||
</IfModule>
|
||||
|
||||
# ==============================
|
||||
# CUSTOM 404 PAGE (Optional)
|
||||
# ==============================
|
||||
ErrorDocument 404 /404.html
|
||||
ErrorDocument 404 /404.html
|
||||
@@ -0,0 +1,4 @@
|
||||
# Turn off rewrite engine in admin directory to prevent InfinityFree ?i=1 redirect loops
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine Off
|
||||
</IfModule>
|
||||
@@ -1,48 +0,0 @@
|
||||
# ==============================
|
||||
# BASIC SETTINGS
|
||||
# ==============================
|
||||
|
||||
# Prevent directory listing
|
||||
Options -Indexes
|
||||
|
||||
# ==============================
|
||||
# CACHE CONTROL (No caching)
|
||||
# ==============================
|
||||
<IfModule mod_headers.c>
|
||||
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
||||
Header set Pragma "no-cache"
|
||||
Header set Expires 0
|
||||
</IfModule>
|
||||
|
||||
# ==============================
|
||||
# FORCE HTTPS
|
||||
# ==============================
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
# Redirect HTTP to HTTPS
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
</IfModule>
|
||||
|
||||
# ==============================
|
||||
# GZIP / COMPRESSION (Optional)
|
||||
# ==============================
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/json
|
||||
</IfModule>
|
||||
|
||||
# ==============================
|
||||
# CLEAN URLS (Optional)
|
||||
# ==============================
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
# If request is not a real file, rewrite to .php
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^([a-zA-Z0-9_-]+)$ $1.php [L]
|
||||
</IfModule>
|
||||
|
||||
# ==============================
|
||||
# CUSTOM 404 PAGE (Optional)
|
||||
# ==============================
|
||||
ErrorDocument 404 /404.html
|
||||
Reference in new issue
Block a user