【问题标题】:.htaccess is not working in Ubuntu Apache.htaccess 在 Ubuntu Apache 中不起作用
【发布时间】:2017-05-09 05:25:51
【问题描述】:

其实我已经在 Apache 中激活了 mode_rewrite。

core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version 
mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core 
mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex 
mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation 
mod_php5 **mod_rewrite** mod_setenvif mod_status

但是 .htaccess 文件不起作用。

【问题讨论】:

  • 你如何确定它“不工作”?

标签: php apache .htaccess ubuntu


【解决方案1】:

我也遇到了同样的问题。 主要有两个原因。

  1. apache 配置错误。
  2. php 版本。

我建议你先在 ubuntu 中更新你的 php。

【讨论】:

  • .htaccess 是一个 Apache 配置文件,它与 PHP 无关。 “apache 配置错误”——你能不能再含糊其辞了?
猜你喜欢
  • 1970-01-01
  • 2013-10-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-30
  • 2011-04-27
  • 1970-01-01
  • 2015-07-01
相关资源
最近更新 更多