I set up Wordpress as a multisite and as part of the steps, it gave some instruction to update and replace the .htaccess file.
Wordpress instructed me to replace the htaccess with this:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
However this caused some jquery on a plugin to break.
I thought it might be useful, but could someone help provide some insight into what each of these lines does?
In particular this line:
RewriteRule ^(.*\.php)$ $1 [L]
As, if I remove this line, my plugin works fine.
Thanks in advance :)