YANZ UPLOAD ANJG
# Enforce HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
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]
# END WordPress
# Disable directory browsing
Options -Indexes
# Protect .htaccess and other sensitive files
Order allow,deny
Deny from all
# Block access to wp-config.php
Order allow,deny
Deny from all
# Prevent PHP execution in uploads
Order allow,deny
Deny from all
# Prevent PHP execution in wp-includes
Order allow,deny
Deny from all
# Prevent access to xmlrpc.php if not used
Order allow,deny
Deny from all
# Prevent unauthorized access to .htaccess
Order allow,deny
Deny from all