服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.4
  3. 将一个文件从httpredirect到https
Intereting Posts
文件未find,尽pipe在ls中显示 Robocopy和IIS日志修改的行为 恢复MySQL安装 对于IPv6迁移,我们应该replace运行VLAN的现有L2交换机吗? 备份PDF文件和SQL服务器数据库 服务器虚拟化 – 开机需求 通过SSH隧道间歇性地“慢”HTTP代理 将STDOUT和STDERR镜像默认为文件 服务器和客户端是否可以使用具有相同CN的证书? sssd ldap身份validation不能自动安装主目录 为Windows 7部署创build答案文件 unix恶意脚本/ ksh执行 垃圾邮件避免mxlogging locking在我的Slicehost.com Ubuntu框中 重新启动nginx和gunicorn没有sudo

将一个文件从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