Https not working

Website URL

https://rajinsakha.com.np

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.

Can you share the contents of your .htaccess file?

5 Likes

Problem with your .htaccess or index page code

3 Likes

Not for me, it does not. Visiting it via HTTP also redirects to the 403 page.

Regarding HTTPS, did you do this?

2 Likes

##################################################

DO NOT EDIT THIS FILE

Create a new .htaccess file in your htdocs

directory (or example.com/htdocs/ directory)

to add your own rules or override these rules.

##################################################

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”

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.