Hello there,
My some end-users getting 302 Found response page while trying to access my forum, which is powered by Invision Power Suite. I tried to troubleshoot with CURL about what is the problem, these are the results:
http://i.imgur.com/Jaq1F3F.png
And this is the .htaccess of the root directory (/var/www/html/)
http://i.imgur.com/fhLUFxp.png
It seems, my server is giving 302 response everytime user tries to access it through non-SSL. I don’t want to give up from security, so I have to find a way without disabling SSL.
HSTS is enabled, and my forum uses HTTPS address as the main board URL. I couldn’t find a proper solution in the internet, so I wanted to ask DigitalOcean community.
Thanks.
Note: Apache is 2.4.20, PHP is 7.0.8 (both from Sury.org packages) and MySQL is 5.7.12 (Ubuntu packages)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
```code`````` To read more about my erotic and adult blogs<br />Please visit <a href=“https://escortwriter.blogspot.in” >https://escortwriter.blogspot.in</a><br /><a href=“http://www.escortsinranchi.com/” >Escorts service in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Call girls in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >College escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >High profile escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >VIP call girls in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Independent escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Housewife escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Celebrity escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Air Hostess escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Actress escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Model escorts in Ranchi</a> | <a href=“http://www.escortsinranchi.com/” >Ranchi call girls</a> | <a href=“http://www.escortsinranchi.com/” >Ranchi escorts</a>
code
when i add this code site show ERR_TOO_MANY_REDIRECTS and when i remove this my site show unreachble plz help help
Can you clarify what the problem you’re running into is? A 302 response is a redirect. If you wish to use HTTPS for your site then this is a proper configuration. Having responses for http being a 302 redirect to the HTTPS version of the site rather than allowing browsing insecurely.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.