服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.4
  3. 将一个文件从httpredirect到https
Intereting Posts
Windows上的systeminfo.exe有更快的select吗? GIF与Apache重写丢失了mimetypes SPFlogging – 这个客户不认可的机制。 未知机制: Windows 7 Enterprise上支持.NET Framework 4.6的文档 如何findCentOS 5.0的libpython2.6.so.1.0? 如何重命名Windows Server 2008 R2计划任务中的任务 Server 2012 R2上的添加/删除function在join域时失败(脱机) 在PostgreSQL上只有文件系统备份的问题? 如何防止bash $replace? 当RDP远程Windows服务器时,\ tsclient共享空白 在顶部显示完整的进程名称 Azure虚拟机 – 它们提供什么容错function? Puppet / Hiera:SERVER上的错误400:Hiera :: Backend:Module的undefined方法`empty_answer' snmpwalk未知对象标识符 networking路由问题

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