码迷,mamicode.com
首页 > Web开发 > 详细

ci的url去除index.php

时间:2018-05-19 01:14:10      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:dir   serve   div   .com   iter   exe   htaccess   server   httpd   

wamp: httpd-vhost.conf

<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  #DocumentRoot "${INSTALL_DIR}/www"
  #<Directory "${INSTALL_DIR}/www/">
  DocumentRoot "C:\JabinDoc\php_www"
  <Directory "C:\JabinDoc\php_www">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName php.test.com
  ServerAlias php.test.com
  DocumentRoot "C:\JabinDoc\php_www\ci"
  <Directory "C:\JabinDoc\php_www\ci">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

ci: 根目录下.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

 

ci的url去除index.php

标签:dir   serve   div   .com   iter   exe   htaccess   server   httpd   

原文地址:https://www.cnblogs.com/maoriaty/p/9058599.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!