Skip to content

Instantly share code, notes, and snippets.

@jconroy
Created November 28, 2017 07:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jconroy/69acf12d70ad6f6d1e85e1eb4bd64ae0 to your computer and use it in GitHub Desktop.
Save jconroy/69acf12d70ad6f6d1e85e1eb4bd64ae0 to your computer and use it in GitHub Desktop.
HTTP_AUTHORIZATION modification for WP .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment