最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin development - Wordpress Own Rewrite Rules

programmeradmin2浏览0评论

i am trying to rewrite a URL with the following code in functions.php

add_action('init', function()
 {
    add_rewrite_rule('/agbz\/(\w*)\/\?page=(\w*)&memberID=([a-z]{1}\d*)&land=(\w*)&fa=(\w*)&vorname=(\w*)&nachname=(\w*)/miu', 'index.php?page_id=$matches[1]&page=member&memberID=$matches[3]&land=$matches[4]&fa=$matches[5]&vorname=$matches[6]&nachname=$matches[7]', 'top');
 });

My URL is :

domain.de/agbz/userprofile/?page=member&memberID=Z4911331&land=deutschland&fa=zahnarzt&urltitel&vorname=Henryk&nachname=Donnerstag

Can someone help me out of this? The URL is the same as before

发布评论

评论列表(0)

  1. 暂无评论