I have to keep the below block at the bottom of my htaccess file or other commands won't work. Why? I didn't think there was any order to commands in the Apache file. Is that right? # BEGIN WordPress #NEEDS TO BE AT END OF FILE OR HIDE DEBUG FILE CODE DOESN'T WORK RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] # END WordPress
RewriteEngine On and RewriteBase / should be placed just once at the top of the .htaccess file. Don't use them again and again.
Thank you for the reply. I moved the block to file top and commented out the multiple RewriteEngine On. I had only one RewriteBase / which was in the block. Doing this exposed the debug.log