wordpress使用htaccess将查询字符串url转换为斜杠

时间:2017-11-20 10:57:59

标签: .htaccess query-string

我正在尝试使用htaccess将我的url查询字符串转换为斜线,但它不是wokring.its wordpress作为cms

这就是我所做的

http://mycouserweb.co.au/courses?month=02&cyear=2018
to
http://mycouserweb.co.au/courses/month/05/cyear/2017

我的htaccess。

RewriteRule ^courses/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)$ courses?month=$1&cyear=$2 [NC,L]

0 个答案:

没有答案
相关问题