Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Need help about .htaccess code


Go to End


3 Posts   822 Views

Avatar
VPull

Community Member, 58 Posts

27 May 2016 at 5:26pm

Hello,

Today when I checked .htaccess file for some reason, I found

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
this line which is not added by me. can you please explain me about this code.

Avatar
Friizu

Community Member, 17 Posts

27 May 2016 at 8:23pm

Edited: 27/05/2016 8:28pm

This makes HTTP Basic Authentication work on php5-cgi installs (php5_module automatically handles this, but cgi/fcgi module does not)
http://www.besthostratings.com/articles/http-auth-php-cgi.html

Don't think its anything to do with Silverstripe. Its your webserver conf and how php is installed. You should check your phpinfo to find out more.
http://blog.layershift.com/which-php-mode-apache-vs-cgi-vs-fastcgi/

Hope that helps.

Avatar
VPull

Community Member, 58 Posts

27 May 2016 at 8:55pm

Thanks Friizu for quick reply : )
Articles help me lot.