【发布时间】:2016-12-20 06:59:38
【问题描述】:
我在 Laravel 中构建了一个应用程序,但在通过 https 访问页面时遇到问题。例如,如果我访问 geepay.in,应用会重定向到 https
但是,如果我访问 http://geepay.in/9860494211,它会重定向到 https 域 index.php
(另外,如果我从 htacess 中删除脚本,应用程序将停止工作并引发错误)。
我的 htacess 文件包含以下内容
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
#Hadle https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
AddHandler application/x-httpd-php55 .php55 .php
我该如何解决这个问题?
【问题讨论】:
-
你遇到什么错误