Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 error edit: page only loads on https #198

Open
MrBryan opened this issue Oct 12, 2016 · 2 comments
Open

403 error edit: page only loads on https #198

MrBryan opened this issue Oct 12, 2016 · 2 comments

Comments

@MrBryan
Copy link

MrBryan commented Oct 12, 2016

I installed adaptive images on relatively bare .htaccess and it makes the root of the domain 403

I enabled error reporting but I get nothing... GD is installed, php is version PHP 5.2.17-pl5-gentoo

here's what was already in the .htaccess

removehandler server-parsed .html .htm
addtype application/x-httpd-php .html .htm

Any ideas?

@MrBryan MrBryan changed the title 403 error 403 error edit: page only loads on https Oct 17, 2016
@MrBryan
Copy link
Author

MrBryan commented Oct 17, 2016

Turns out I can still load pages on https. Without adaptive images loaded http and https work, with it on, http loaded pages 403 especially when listing directories website.com/page/ vs website.com/page/index.php

@schlaubstar
Copy link

I also got a strange problem when I try to force SSL/HTTPs.

When I do not enforce but use https, everything works fine and in those cases I get the response "304 Not changed" from AI, when requesting an image. When I add the following lines to the .htaccess file

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

I suddenly get endless "chains" of 301 Permanently moved responses that cause the images to not be displayed.
Does anyone have an Idea what is wrong ?
If I do not enforce https via .htaccess the requests to AI are made via https and everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants