服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.2 PHP
  3. Apache / PHP不允许在.htaccess文件中使用mod_rewrite
Intereting Posts
木偶大师和资源图 如何告诉jenkins放弃build立一个特定的SHA? 用自定义网站和wordpress重写问题 处理具有挑战性的用户的策略 在一个大的(ger)子网上潜在的stream量问题 从命令行在Windows中启动店面会话 为PythonconfigurationFastCGI 我怎么知道apache进程在做什么? 思科ASA日志和PIX之间的区别 为什么HTTP嗅探器无法捕获PHP生成的HTTPstream量? 木偶启动错误 声音在Asterisk的IVR上消失了 SQL 2008 R2复制错误:该进程无法连接到分发服务器 IPtables的Ubuntu的IP地址有一个通配符 SAN整合后MSSQL I / O性能下降?

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