WordPress.org

Ready to get started?Download WordPress

Forums

Getting Rewrite Rule to work (1 post)

  1. mediashark
    Member
    Posted 1 year ago #

    I am trying to make a custom URL using the add_rewrite_rule() hook. I have the rule showing up through the rewrite_rules() function. It displays as this:

    [(topdrs)/state/(.+?)$] => index.php?page_id=34&action=search&meta[13][options][]=$matches[2]

    Going to the page http://www.url.com/topdrs/state/Arkansas sends me to the 404 page template. On that page I output server and get variables and it appears the page_id is not being passed.

    It seems that its not passing the variables to the page

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.