apache_conf CI:使用mod_rewrite进行CodeIgniter的简单.htaccess

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf CI:使用mod_rewrite进行CodeIgniter的简单.htaccess相关的知识,希望对你有一定的参考价值。

<IfModule mod_rewrite.c>
  RewriteEngine On
  # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
  #  slashes.
  # If your page resides at
  #  http://www.example.com/mypage/test1
  # then use
  # RewriteBase /mypage/test1/
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  # If we don't have mod_rewrite installed, all 404's
  # can be sent to index.php, and everything works as normal.
  # Submitted by: ElliotHaughin

  ErrorDocument 404 /index.php
</IfModule>

以上是关于apache_conf CI:使用mod_rewrite进行CodeIgniter的简单.htaccess的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf 圆CI配置

apache_conf Circle-CI 2.0のcron triggerを使って,定期実行をするref:http://qiita.com/inuscript/items/55b6bbfbc064e

apache_conf 使用.htacces强制下载

apache_conf 使用.htaccess设置密码

apache_conf 使用.htaccess强制HTTPS

apache_conf 使用.htaccess强制HTTPS