Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. The following four steps can be completed after configuration.
1. The mod_rewrite.so module is loaded in the httpd. conf configuration file.
2. Change AllowOverride None to All
3. Make sure that URL_MODEL is set to 2.
4. Save the following content as a. htaccess file and put it under the same directory of the entry file
This is my httpd. conf configuration
# LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
# LoadModule sed_module modules/mod_sed.so
AllowOverride All
Require all denied
This is the httpd-xampp.conf Configuration
Alias/xn "E:/WEB/xn /"
Options Indexes FollowSymLinks between des ExecCGI
# Options None
AllowOverride All
Require all granted
Project portal
The content of the. htaccess file is as follows:
RewriteEngine on
RewriteCond % {REQUEST_FILENAME }! -D
RewriteCond % {REQUEST_FILENAME }! -F
RewriteRule ^ (. *) $ index. php/$1 [QSA, PT, L]
My config. php
When I use a URL for access
Http: // 127.0.0.1/xn/Admin/Public/login
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
127.0.0.1
Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.1
Please help me to see what I am missing,
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB