On the Apache server access way to remove index.php below I say Apache, how to remove the URL inside the index.php
For example: Your original path is: Localhost/index.php/index
The changed path is: Localhost/index
The mod_rewrite.so module is loaded in the 1.httpd.conf configuration file//configured in Apache
#LoadModule rewrite_module modules/mod_rewrite.so To remove the siren from the front.
2. Configure in Apache to change the allowoverride none inside to allowoverride all
Note: Be sure to restart the Apache service after you modify it.
3. Ensure that the Url_model is set to 2 (URL rewrite mode)
Write in the project's configuration file
Return Array (
' Url_model ' = ' 2′,
);
4. htaccess files must be placed in the directory with
This file adds:
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [L]
Add: Windows cannot create. htaccess, I'll say next. Create a method
Create a new file, then open it, click Save As (file type Select all) so you can
Oh, the rest is your own to test, hurriedly to try to
Remove index.php on the Apache server access mode