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
11798
14.02.2018 03:27
- How do I limit upload_max_filesize? PHP.ini method not working
11486
06.12.2022 11:02
- Max_execution_time how to increase time
11413
24.01.2021 17:14
- Connect to mysql database
11214
28.02.2018 16:52
- I can't login to my account. Reset password don't help
10868
25.02.2020 22:06
- Cannot put SSL on my domain
10331
03.04.2019 19:20
- Layer 7 DDoS protection on Web hosting
10222
17.08.2025 13:59
- Abuse Report not working
9616
27.03.2025 07:45
- How do I get rid of the default 'site under construction' page?
9386
27.10.2022 14:35
- Trying to connect my OVH domain to shopify store
8700
13.06.2021 22:43