NotFound-php Tutorial

Source: Internet
Author: User
Thinkphpnotfound cannot be used. the server is APACEH [TueJun2110: 19: 182011] [error] [client127.0.0.1] File thinkphp not found and cannot use urlrewrite
Not Found

The requested URL/personnel/test was not found on this server.


The server is APACEH.

[Tue Jun 21 10:19:18 2011] [error] [client 127.0.0.1] File does not exist: D:/work3/personnel/test

?

?

Solution

This error mainly occurs when processing php url rewriting. this can be handled in the official manual.

?

Usually, index. php is contained in the signed URL. to achieve better SEO performance, you may need to remove index. php from the URL,
The URL rewrite scheme can achieve the scheme return effect. Generally, you need to enable the URL_REWRITE module of the friend server to support the scheme.
The following is the configuration process of Apache compaction. for details, refer:
1. the mod_rewrite.so module is loaded in the httpd. conf configuration file.
2. change AllowOverride None to All
3. make sure that the URL_MODEL watermark is set to 2.
4. put the. htaccess file in the same directory as the ". htaccess" file in the "overview" file.

RewriteEngine on
RewriteCond % {REQUEST_FILENAME }! -D
RewriteCond % {REQUEST_FILENAME }! -F
RewriteRule ^ (. *) $ index. php/$1 [QSA, PT, L]

After Apache restart
Http :// /Index. php/Blog/read/id/1?
You can query
Http :// /Blog/read/id/1

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.