鍍金池/ 問答/PHP  C#  Linux  網(wǎng)絡(luò)安全/ 我想讓用戶點(diǎn)擊blog按鈕訪問的時(shí)候url重寫,但是沒有生效,是不是正則表達(dá)式錯(cuò)

我想讓用戶點(diǎn)擊blog按鈕訪問的時(shí)候url重寫,但是沒有生效,是不是正則表達(dá)式錯(cuò)了?

原來的href : 域名/index.php?p=Home&c=Blog&a=blog
我想要訪問的時(shí)候地址欄顯示為 : 域名/blogx-x-x.html

規(guī)則我這樣寫 但是沒有效果 還是顯示原來的
.htaccess就在根目錄下

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^blog([0-9]+)-([0-9]+)-([0-9]+)\.html$  index.php?p=$1&c=$2&a=$3
</IfModule>
回答
編輯回答
孤毒
RewriteRule index.php?p=$1&c=$2&a=$3 ^blog([0-9]+)-([0-9]+)-([0-9]+)\.html$  
2017年8月23日 15:02