apache文件已經修改
<Directory />
     Options FollowSymLinks
     AllowOverride All
</Directory>.htaccess文件內容如下
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ([a-zA-Z]{1,})-([0,9]{1,})\.html$ index.php?action=$1&id=$2 
</IfModule>新建index.php文件
<?php  echo "your action is".$_GET['action'];
  echo "<br>";
  echo "your id is".$_GET['id'];?>
在地址欄輸入localhost/view-12.html
本應顯示
你的Action是:view
你的ID是:12
但現在顯示404錯誤,請問我應該在哪裡找問題。