The authorization rules should be placed before the # BEGIN WordPress
since when permalinks updated, WordPress will update anything between the BEGIN
and END
with the original code and thus remove your added rules.
Below is my final rules:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress-v7.0/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress-v7.0/index.php [L]
</IfModule>
# END WordPress
-
This reply was modified 7 years, 3 months ago by Ali Basheer.