首页 > 解决方案 > apache http redirect appending '/' automatically

问题描述

I am trying to redirect all request to my website from http to https. It works fine but if a user key in http://example.com/ in the browser window manually it get redirected to https://example.com// why does an extra '/' is being added to the end of the URL.

My apache config file looks like this

<VirtualHost *:80>
  ServerName example.com
  Redirect / https://example.com
</VirtualHost>

标签: apache

解决方案


推荐阅读