服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.4
  3. 将一个文件从httpredirect到https
Intereting Posts
安排从TFS导出的错误 Keepalived,Junos和ARPcaching 如何防止Apache / PHP显示phpinfo()中的环境variables部分? SBS 2008可以浏览共享,但不能连接到任何 我工作的地方都以root身份login 为什么default.aspx缺lessIIS网站中的默认文档? 允许用户login到OWA,但不能进入任何域PC? 主动/被动反向代理与Nginx 在Production中运行PostgreSQL服务器需要多lesspipe理员权限? 为什么通过processn匹配数据包返回unkown选项 就地将Windows Server Standard Edition 2003升级到Windows Server Enterprise / Datacentre Edition 2003 正确安装软件包的位置? 在SharePoint 2007中为文档创build多个标记 为什么更新后有.rpmnew文件? VMware ESXi上的高可用性链接

将一个文件从httpredirect到https

我试图redirect一个文件从http到https使用.htaccess但它不工作。 奇怪的是,如果我添加/在它的工作原理的结尾。 我究竟做错了什么?

RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^offers\.html/?$ https://%{HTTP_HOST}/offers.html [R=301,L] 

谢谢

  • .htaccess RewriteRule不能使用root'/'
  • FreeBSD Server .htaccess问题
  • Helicon ISAPI Rewrite正在处理httpd.conf的重写规则而不是.htaccess
  • 我如何转发某个域名到另一个url?
  • ModRewrite 9返回参考限制
  • WordPress的主题不能正常显示,与.htaccess问题?
  • 如何:Zend .htaccess Lighttpd转换
  • .htaccess头文件
  • 在Dreamhost上重写URL
  • 301redirect。 需要帮忙。 有一个艰难的时间
  • Django .htaccess
  • 如何修改allow_url_fopen本地值
  • redirect任何请求的PHP文件到网站的根?
  • .htaccess重写CSS请求的规则
  • mod_rewrite一个子域的URL到另一个网站

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy