服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 PHP
  3. Apache / PHP不允许在.htaccess文件中使用mod_rewrite
Intereting Posts
用户名恢复后,Windows 2008 Server R2原始域configuration文件将不会显示 木偶确保文件是目录或链接。 或者确保目录只有在缺席? nginx作为代理的行为 htaccess RewriteRule强制执行A​​pache 2.2的结束 openvpn:分配其他ip 我如何保护我的站点地图索引文件和sitemap.xml文件从leechers? 尾巴AWS CloudWatch日志组 服务器监控 – 体验 Fedora安装.bin文件 设置过期通过查询string检索的东西的头 我怎样才能弄清楚,如果端口25被阻止在我的networking上? 可以发送给个人用户,但不能在全球通讯列表中发送。 Solaris 10 5/09找不到SATA磁盘 我可以使用htaccess密码保护位置(不是目录)在Apache中? 边疆互联网 – 不能连接到谷歌云

Apache / PHP不允许在.htaccess文件中使用mod_rewrite

我有一个简单的.htaccess文件来重写www.domain.com/foobar.php到www.domain.com/foobar

 RewriteEngine On RewriteRule foobar foobar.php [L] 

即使我跑了phpinfo();它也给了我一个404 phpinfo(); (显示mod_rewrite模块),并检查httpd.conf (默认使用mod_rewrite几次)。

有什么build议么?

  • 文件只有PHP可读?
  • 了解Apache虚拟主机文件
  • Apache模式重写太多的redirect
  • 如何在apache上安装godaddy的ssl
  • 使用通配符为域和文档根目录设置虚拟主机别名 – doc根目录未正确parsing

  • Googlebot增加页面ID
  • Apache 99%的CPU,但没有访问日志
  • 如何设置Apache服务器上的最大目录大小?
  • NameVirtualHost关于HTTP请求伪造的安全性
  • 如何自动清理date加盖的日志

最可能的原因是您在configuration中至less没有将“AllowOverride”设置为“FileInfo”。

通过添加这些指令来检查您的重写日志:

 RewriteLogLevel 3 RewriteLog /path/to/logfile 
  • redirect域(和所有子域)到其他域
  • 更新apache2密钥,sslvalidation在apache2启动失败
  • 当达到pid_max时会发生什么情况
  • Apache2 mod_log_config和毫秒在Ubuntu Server 12.04上不起作用
  • Apache的文件根重写问题
  • Apache 301在vhost中redirect
  • VPS多个IP的
  • 故障排除mod-wsgi线程死亡
  • Apache虚拟主机奇怪的行为
  • “L”状态下的很多Apache请求,可能是什么原因? DDOS?

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