Environment: System WindowsApache2.2 load Rewrite module: Found in httpd. conf under the conf Directory
Environment:
Windows
In Apache 2.2
Load the Rewrite module:
Find httpd. conf in the conf Directory
LoadModule rewrite_module modules/mod_rewrite.so
Remove the comment symbol "#" from the front or add this sentence.
You can use the ". htaccess" file in any directory and change "AllowOverride" to "All" ("None" by default "):
# AllowOverride controls what directives may be placed in .htaccess files.# It can be “All”, “None”, or any combination of the keywords:# Options FileInfo AuthConfig Limit#AllowOverride All
Add the last line in conf \ httpd. conf
RewriteEngine OnRewriteRule ^(.*)-htm-(.*)$ $1.php?$2
The above is the PHP Development entry-Apache open pseudo static detailed content, more please follow the first PHP community other related articles!