daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2. RewriteBase /
  3.  
  4. # BEGIN WordPress
  5. #uploaded files
  6. RewriteRule ^(.*/)?files/$ index.php [L]
  7. RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
  8. RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
  9.  
  10. # add a trailing slash to /wp-admin
  11. RewriteCond %{REQUEST_URI} ^.*/wp-admin$
  12. RewriteRule ^(.+)$ $1/ [R=301,L]
  13.  
  14. RewriteCond %{REQUEST_FILENAME} -f [OR]
  15. RewriteCond %{REQUEST_FILENAME} -d
  16. RewriteRule . - [L]
  17. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
  18. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  19. RewriteRule . index.php [L]
  20. # END WordPress
RAW Paste Data
Top