Forums

Creating custom rewrite rules in wordpress. (1 post)

  1. dcritic
    Member
    Posted 2 months ago #

    Hi, I'm looking how to create custom rewrite rules.
    I want to read info from a database and rewrite them into urls based on info supplied in get.

    1. How do I get the pagename parameter to be a certain value to get the database info?

    2. How would i use the get?

    3. How would I rewrite the urls?

    For further clarification:

    turn
    /index.php?dctype=(1)&dcstate=(2)&dccity=(3)dcname=(4)&dcpage=(5)

    into
    /(1)/(2)/(3)/(4)/(5)

    I want to use the WP_rewrite class, not the htaccess file.

    Thanks in advance,

    DCritic

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 2 months ago by dcritic
  • WordPress version: 2.8.4
  • This topic is not a support question

Tags