Website URL
Error Message
403 Forbidden
Server or website configuration is blocking you from viewing this page
I get above error when i try to redirect to HTTPS. My website works correctly while using only HTTP.
I get above error when i try to redirect to HTTPS. My website works correctly while using only HTTP.
Can you share the contents of your .htaccess file?
Not for me, it does not. Visiting it via HTTP also redirects to the 403 page.
Regarding HTTPS, did you do this?
##################################################
##################################################
DirectoryIndex index.php index.html index.htm index2.html
ErrorDocument 403 https://errors.infinityfree.net/errors/403/
ErrorDocument 404 https://errors.infinityfree.net/errors/404/
ErrorDocument 500 https://errors.infinityfree.net/errors/500/
I have not created any separate .htaccess file inside htdocs. I tried adding .htaccess with some code as provided in infinity free article related to it. It didn’t work, so I deleted it.
I did all of the steps but it didn’t work. Regarding HTTP, it is working fine for me.
you need to create your own .htaccess file in htdocs containing just the commands you require
the one in the root is not to be messed with, it even says “DO NOT EDIT THIS FILE”
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.