Home >Backend Development >PHP Tutorial >CI framework method to remove index.php in URL, ciindex.php_PHP tutorial

CI framework method to remove index.php in URL, ciindex.php_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:55:56918browse

CI framework method to remove index.php in url, ciindex.php

1 Modify apache’s httpd.conf file

#LoadModule rewrite_module modules/mod_rewrite.so

Remove the # in front of it

2 Find the .htaccess file in your program directory

The content is as follows


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

Save and restart

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/991534.htmlTechArticleCI framework method to remove index.php in url, ciindex.php 1 Modify apache’s httpd.conf file #LoadModule rewrite_module modules/mod_rewrite.so Remove the # 2 in front and find your program directory...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn