我有以下重写规则
<filesMatch "^(member)$">
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/(.*)/(.*)/(.*)$ /member-profile.php?ID=$2 [L]
</filesMatch>
<filesMatch "^(community-events)$">
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/(.*)/(.*)/(.*)/(.*)$ /community-events.php?ID=$3 [L]
</filesMatch>
也就是说,显然重写了这个
mydomain.com/comunity-events/category/id/name
对此
mydomain.com/comunity-events.php?myvariables
现在,我想要一个没有起始“文件夹”的新重定向,就像这样
mydomain.com/business-category/business-name
到
mydomain.com/business-profile.php?variables
考虑到当前的配置,这是否可能,而无需为每个类别名称进行重定向?