• Hello,

    I’m having problems adding rewrite rules to my htaccess file.

    When I add a rewrite rule with 1 parameter it seems to be working properly, but when I add a rewrite rule with 2 parameters it keeps returning a 404 page error on the selected page.

    This is my code for 1 parameter:
    RewriteRule ^page-statistics/([^/]+)/?.*$ page-statistics/?pid=$1 [NC]

    And this is my code for 2 parameters:
    RewriteRule ^day-page-statistics/([^/]+)/([^/]+)/?.*$ day-page-statistics/?pid=$1&d=$2 [NC]

    I’ve also tried the add_rewrite_rule function in WordPress but this didn’t seem to work either.

    I hope someone can help me with this.

    Thanks in advance,
    Rens

  • The topic ‘Rewrite rule htaccess problem’ is closed to new replies.