我需要这些网址的重写规则:
/ blog / big-green-blog-entry-with-tag / xydf07bz5tnpqzh / ?tag = this-blog-49
转换后的URL具有以下结构:
?tag = this-blog-49 =是动态字符串,应附加在末尾 p>
示例:
来自:
/ blog / big-green-blog-entry-with-tag / xydf07bz5tnpqzh /?tag = this-blog-49
收件人:
https://www.myblog.de/id/XYDF07BZ5TNPQZH/?tag=this-blog-49
示例:
来自:
/ blog / another-blog-entry-with-tag / abtgf567d /?tag = new-blog-32
收件人:
https://www.myblog.de/id/ABTGF567D/?tag=new-blog-32
到目前为止,我的规则:
rewrite ^/blog/[a-zA-Z0-9-_]+/([a-zA-Z0-9-_]+)/ https://www.myblog.de/id/$1/? redirect;
有人可以帮助我吗?
谢谢!