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
Release: 2016-07-13 09:55:56
Original
895 people have browsed it

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...
Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template