Skip to content

Add note about .htaccess modification for CGI / FastCGI #2

@JPustkuchen

Description

@JPustkuchen

Hi and thank you for this great plugin!

When using PHP as CGI / FastCGI this plugin may fail to work. You should add the following snippet to the description to be added to the .htaccess aftter RewriteEngine On:

# Make sure Authorization HTTP header is available to PHP
# even when running as CGI or FastCGI.
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Full example:

<IfModule mod_rewrite.c>
RewriteEngine On

# Make sure Authorization HTTP header is available to PHP
# even when running as CGI or FastCGI.
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I think that will save people from trouble and you from "not working" messages ;)

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions