• Resolved Gloria

    (@erfo)


    Hi.

    I have some problem with the database and the rules.

    I would rewrite rules of all pages, because I have no the table “rewrite_rules” into database.

    And…
    I have the permalinks => /%category%/%postname%
    When I publish a page (no post), I consume about 2800 queries. After, when I change the permalink in “default” (/?p=123), the queries are about 20.

    So, I think it is a problem of the table “rewrite_rules” into database.
    But now, I have no this table, and so I want rewrite the rules.

Viewing 4 replies - 1 through 4 (of 4 total)
  • There is no rewrite_rules table in the database. Try using one of the pre-set custom permalink structures or ensure that your custom structure starts with a numeric field.

    Thread Starter Gloria

    (@erfo)

    Thanks for your answer.

    Try using one of the pre-set custom permalink structures

    If I use permalink as:
    -Default
    -Day and name
    -Month and name
    -Numeric

    It’s all ok, and I consume about 20 queries (each page/post).
    But, when I try again ” Custom structure: /%category%/%postname% “, the queries are about 2800.

    If I use “/%year%/%postname%”, the pages have the same permalink (www.nomesito.it/page/sub-page), but the post are “www.nomesito.it/2010/title-article” and before were “www.nomesito.it/category/title-article”.
    So, I can return to “/%category%/%postname%” ?

    Only if you’re content to have 2800 queries. The issue hinges on the fact that you’re not using a numeric to start your custom permalink structure as recommended in Using_Permalinks. The full explanation of why this creates additional queries is at https://comox.textdrive.com/pipermail/wp-testers/2009-January/011097.html

    Thread Starter Gloria

    (@erfo)

    Thanks.
    I was looking for something like this “ticket”.
    It’s a limit for WordPress ??
    So, I think I use the structure “/%year%/%postname%”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How rewrite rules into database? I have no table rewrite_rules’ is closed to new replies.