Home >Backend Development >PHP Tutorial > .htaccess资料 url重定向

.htaccess资料 url重定向

WBOY
WBOYOriginal
2016-06-13 13:01:47861browse

.htaccess文件 url重定向
大家好 我在php zendframework框架里面 的.htaccess分布式配置文件里面设置让页面重定向为https访问 也就是将http替换为https 我的代码为 但是有问题 请大家帮我看看 谢谢
RewriteRule ^.*$ - [NC,L]
RewriteRule  ^.*https://$ index.php [NC,L]
------解决方案--------------------
RewriteRule ^http ^htts [R]
------解决方案--------------------
RewriteRule ^http://(.+) ^https://$1 [L]

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn