We know that the search engine is preference for static pages, so, put such as: http://www.jianglb.com /? Change the p = 123 page to http://www.jianglb.com/apaeche-rewrite.htmlto show benefits for searching.
However, if the address file does not exist in http://www.jianglb.com/apaeche-rewrite.html, the error file does not exist.
This requires the useApacheThe rewrite module redirects these URLs to a dynamic program such as index. php. Of course, index. php also needs a program to identify these addressesDatabaseAccess data.
Enable rewrite. Make sure that the apache configuration file is in httpd. conf.
LoadModule rewrite_module libexec/mod_rewrite.so
The directory where the website is located defines the following
Rong:
Options Indexes FollowSymLinks
AllowOverride all
The website directory must also contain a. htaccess
Content:
Rewriteengine on
Rewritebase/
RewriteCond % {REQUEST_FILENAME }! -F
RewriteCond % {REQUEST_FILENAME }! -D
RewriteRule./index. php [L]
In this case, the URL request is automatically sent to index. php.