芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reposadoeverything.com/rollout/.htaccess
# php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php74” package as the default “PHP” programming language. # Remove file extension for user-friendly URLs RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [L] # Redirect old URLs with file extension to the new ones without extension RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/(.+)\.html [NC] RewriteRule ^ /%1 [R=301,L] #
# Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" #
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit # Force HTTPS for the entire site RewriteEngine On # Redirect non-HTTPS requests to HTTPS RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Redirect www to non-www (optional, if needed) RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301] # Redirect specific URLs (e.g., /index.php) to HTTPS homepage RewriteCond %{THE_REQUEST} /index\.php [NC] RewriteRule ^(.*)index\.php$ https://reposadoeverything.com/ [L,R=301]
FileETag None
Header unset ETag Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"