0
我有一個類似如下的URL: example.com/index.php?p=blog &類別=博客文章&博客=測試.htaccess的重寫清潔類和文章
但我想它看起來像: example.com/blog/blog/blog-test
我將如何能夠與htaccess做到這一點?
我有一個類似如下的URL: example.com/index.php?p=blog &類別=博客文章&博客=測試.htaccess的重寫清潔類和文章
但我想它看起來像: example.com/blog/blog/blog-test
我將如何能夠與htaccess做到這一點?
可以使用的.htaccess:
RewriteEngine on
RewriteRule ^(.+?)/(.+?)/(.+)$ index.php?p=$1&category=$2&article=$3 [L]
我道歉......博客不是頁面。一切都將通過索引來服務。請參閱更新問題。 – Andrew 2014-11-05 09:37:51
我也更新了我的答案 – Croises 2014-11-05 10:38:19