Support » Plugin: Multipage Plugin » Add additional rewrite rule

  • Hi again,

    I’ve noticed that the sub-pages won’t work if you’ve setup WordPress permalinks to also include the day.
    This could be solved by adding an additional rewrite rule in add_paget_rewrite_rule:
    add_rewrite_rule( '([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/subpage-[^/]+)?/?$', 'index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&name=$matches[4]&paget=$matches[5]', 'top');


  • The topic ‘Add additional rewrite rule’ is closed to new replies.