Recommended way to to redirect HTTP requests to HTTPS

后端 未结 2 1786
既然无缘
既然无缘 2021-01-14 01:21

I\'ve some doubt on how to do redirect all my http pages to https.

I\'ve saw that are someone that tell to do a rewrite like in this reply:

And Apache says t

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-14 01:53

    Add just below or above Document Root in /etc/apache2/sites-available/yoursite.conf

    Redirect permanent / https://your-site.com/

提交回复
热议问题