httpd.conf
找到#APMServ默认虚拟主机
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *
DocumentRoot "D:/APMServ/www/htdocs"
<Directory "D:/APMServ/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride all 这里原来是 AllowOverride none
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
.htaccess内容
RewriteEngine on
RewriteRule test([0-9]*)\.html$ test\.php?id=$1
test.asp内容
<?php
echo $_GET['id'];
?>
以上内容亲侧通过
转载于:https://blog.51cto.com/wesoho/380915