Why cannot I rewrite my URL?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.