Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How can I fix 302 Found error?
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:
And this is the .htaccess of the root directory (/var/www/html/)
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.
Note: Apache is 2.4.20, PHP is 7.0.8 (both from Sury.org packages) and MySQL is 5.7.12 (Ubuntu packages)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×