Advertisement
andhiirawan

Wordpress - Setingan .htaccess untuk mengatasi server error 403 saat simpan

Jan 21st, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} off
  3. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  4.  
  5. <IfModule mod_security.c>
  6. SecRuleEngine Off
  7. SecFilterInheritance Off
  8. SecFilterEngine Off
  9. SecFilterScanPOST Off
  10. </IfModule>
  11.  
  12. # BEGIN WordPress
  13.  
  14. RewriteEngine On
  15. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  16. RewriteBase /
  17. RewriteRule ^index\.php$ - [L]
  18. RewriteCond %{REQUEST_FILENAME} !-f
  19. RewriteCond %{REQUEST_FILENAME} !-d
  20. RewriteRule . /index.php [L]
  21.  
  22. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement