WordPress HTACCESS Rules For WordPress
-
I have tried some custom WordPress htaccess rules changes for wordpress that has made it super fast, but it always breaks my permalinks, does anyone know or have a speedier code for my setup i have that runs on my wordpress. My problem is it hangs up all the time and seems like it is making multiple uneccessary database calls, my admin area hangs up big time only sometimes, front end the same thing, when i try custom rules it is lightning fast yet breaks images all the time?
Any expert advice would be greatly appreciated, Htaccess rules are definitely not my area of expertise!
# BEGIN WordPress
RewriteRule ^index\.php$ – [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
# END WordPress
- The topic ‘WordPress HTACCESS Rules For WordPress’ is closed to new replies.