1
我有如下因素重寫規則重寫友好的URL,型動物圖案
<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
是,即使有可能,鑑於目前的配置,而不進行重定向爲每個類別的名字嗎?
偉大的作品! :) 謝謝! – valiD