Hi
I have enabled SSL on my domain which is working fine but I'm trying to redirect all http traffic to https. I've read this guide (https://docs.ovh.com/gb/en/hosting/htaccess_url_rewriting_using_mod_rewrite/) and added the following to the .htaccess in my root folder but it's not working.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
I suspect I just need to restart apache but I can't see how to do that. Can anyone tell me what I'm doing wrong please?
Cheers
Web Hosting - HTTP > HTTPS Redirect
Related questions
- Update MySQL Version
9107
14.02.2018 03:27
- How do I limit upload_max_filesize? PHP.ini method not working
9030
06.12.2022 11:02
- Max_execution_time how to increase time
9025
24.01.2021 17:14
- Connect to mysql database
8671
28.02.2018 16:52
- I can't login to my account. Reset password don't help
8624
25.02.2020 22:06
- Cannot put SSL on my domain
7964
03.04.2019 19:20
- How do I get rid of the default 'site under construction' page?
7364
27.10.2022 14:35
- Trying to connect my OVH domain to shopify store
7045
13.06.2021 22:43
- Layer 7 DDoS protection on Web hosting
6861
17.08.2025 13:59
- Increase PHP Post Max Size and PHP Time Limit
6565
20.09.2023 07:11