服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess apache 2.2
  3. 重写规则.htaccess不工作的PHP文件
Intereting Posts
检测是否有任何无线设备连接 Active Directory中的全局地址列表内容 Windows 7:访问权限/组策略以防止用户删除卷影副本? IPconfiguration每晚在Linux中重置为默认设置 CIFS和SMB如何相互关联? 为什么IOPS很重要? SQL Server 2005磁盘configuration:单个RAID 1 + 0或多个RAID 1 + 0? 在dell供电的R300服务器上设置RAID 1 我如何findPHP脚本正在更改文件 Linux中用户的进程限制 在OpenVPN中使用静态密钥configuration时,在客户端上设置DNS服务器 奇怪的LDAPsearch结果行为 为什么GNOMEterminal使用这么多的内存? Hyper-V有一个web界面来启动/closures虚拟机? HP ProLiant DL380引导问题

重写规则.htaccess不工作的PHP文件

经过几次尝试,我发现了这一点

RewriteEngine On RewriteRule .* index.php 

没有工作,但

 RewriteEngine On RewriteRule .* index.html 

正在工作,可能的原因是什么? 我该如何解决?

  • 通过phpparsing器传递一个特定的文件
  • .htaccess的htpassword保护,够安全吗?
  • 从一个域访问文件夹时返回404页,但允许从其他域和IP地址访问
  • 阻止使用.htaccess访问子文件的文件
  • 如何只允许特定的目录使用htaccess?

  • 在MediaTemple上使用ModRewrite指示适当的子域失败
  • 如何预gzip静态JS
  • 将特定的域转发到目录?
  • .htaccess匹配参数URLS
  • 阿帕奇重写与wordpress

尝试(循环免费):

 RewriteEngine On RewriteRule ^.*$ index.php [L] 

尝试

 RewriteEngine On RewriteRule (.*)$ index.php 
  • 强制www时mod_rewriteredirect循环。 在域上
  • 带有OS X用户帐户的Apache身份validation
  • .htaccess问题 – 文档根目录 – 我们在这里需要这个RewriteRule吗?
  • 错误500为.htaccess错误
  • Apache .htaccess 301永久redirect
  • 在子目录中的.htaccess中的RewriteRules在父目录中禁用/破坏.htaccess中的RewriteRules
  • 在Apache中编辑htaccess文件
  • 在Nginx的Htaccess
  • Apache – 仅加载基于远程hsot的某些模块
  • .htaccess mod_rewrite删除.php扩展名,但保留URLpath

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