JezK
Edit File: .htaccess
# Enforce HTTPS RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Block consistently compromised paths RewriteRule ^(arg|22)(/.*)?$ - [F,L] # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # Disable directory browsing Options -Indexes # Protect .htaccess and other sensitive files <FilesMatch "^\."> Order allow,deny Deny from all </FilesMatch> # Block access to wp-config.php <Files wp-config.php> Order allow,deny Deny from all </Files> # Prevent PHP execution in uploads <Directory "/wp-content/uploads/"> <FilesMatch "\.php$"> Order allow,deny Deny from all </FilesMatch> </Directory> # Prevent PHP execution in wp-includes <Directory "/wp-includes/"> <FilesMatch "\.php$"> Order allow,deny Deny from all </FilesMatch> </Directory> # Prevent access to xmlrpc.php if not used <Files xmlrpc.php> Order allow,deny Deny from all </Files> # Prevent unauthorized access to .htaccess <Files .htaccess> Order allow,deny Deny from all </Files> # BEGIN cPanel-generated php ini directives, do not edit # Manual editing of this file may result in unexpected behavior. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) <IfModule php8_module> php_flag display_errors Off php_value max_execution_time 300 php_value max_input_time 120 php_value max_input_vars 1000 php_value memory_limit 256M php_value post_max_size 64M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php83" php_value upload_max_filesize 32M php_flag zlib.output_compression Off </IfModule> <IfModule lsapi_module> php_flag display_errors Off php_value max_execution_time 300 php_value max_input_time 120 php_value max_input_vars 1000 php_value memory_limit 256M php_value post_max_size 64M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php83" php_value upload_max_filesize 32M php_flag zlib.output_compression Off </IfModule> # END cPanel-generated php ini directives, do not edit # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php83” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php83 .php .php8 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit