我有以下urls domain / jcb-wine {number} .html,我需要重写它们像domain / wines / {number}我做这样的事情
RewriteRule ^jcb-wine([0-9][0-9])$ /wines/$
但这没有效果:(
我的.htaccess
ErrorDocument 404 /404.shtml
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^wine/([0-9]{2}) /jcb-wine$1.html
这该怎么做?
不应该反过来吗?
RewriteRule ^wine/([0-9]+) /jcb-wine$1.html
删除^ rr写完全uri喜欢
RewriteRule ^/jcb-wine([0-9]+)/?$ /wines/$1