Jump to content

Redirect HTTP to HTTPS


ronanlionti

Recommended Posts

Hello,

I hope you're fine. 

I have a problem with my website.

Currently i have 2 URLs, one with HTTP and one with HTTPS.

I want the HTTP one to redirect on the HTTPS page. 

I saw on google that it can be done in the .htaccess file with :

 Redirect permanent /  https://domain.fr/

 

But i have no idea where i must put this line. 

I tried several location in the file and it ended up with my site not loading anymore. 

Any advice or tips ? 

Thanks a lot 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...