• Hi
    I have created a rule if string contains alphanumeric and dash only.

    order/([a-zA-Z0-9-]+)$ should be redirected to index.php?page_id=485&list=$matches[1]

    Eg: order/BB-1234 should be redirected to index.php?page_id=485&list=BB-1234

    But it is not working. Is it possible to see the error log of it.

    Thanks & Regards,
    Sejal Gada

    https://www.ads-software.com/plugins/rewrite/

Viewing 1 replies (of 1 total)
  • The reason for this is that the re-write rules are not refreshed.

    You have to go to “Settings > Permalinks” in the wp-admin console. Than click “save” (you don’t have to modify anything) to trigger a call to ‘flush_rewrite_rules’.

    Now, your modified regex will be working. Behind the scenes this is updating your .htaccess file to make the new regex effective.

Viewing 1 replies (of 1 total)
  • The topic ‘Rewrite rule with alphanumber and dash is not working.’ is closed to new replies.