Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Instead of using .htaccess for this, use WP’s built-in rewrite rules.
    add_rewrite_rule()
    After adding your code to add a rule, visit the permalinks settings screen to cause all current rules to be regenerated.

    Thread Starter winner1

    (@winner1)

    Thanks @bcworkz for your desire to help me
    But, unfortunately, add_rewrite_rule() doesn’t work.

    • This reply was modified 3 years, 2 months ago by winner1.
    • This reply was modified 3 years, 2 months ago by winner1.
    Thread Starter winner1

    (@winner1)

    …it throws a 404

    Moderator bcworkz

    (@bcworkz)

    Your WP installation is in sub-folder /admin/?
    The query var for the city element is simply “city”. What is the query var for the /en/ language element? And the query var for a product name?

    Please share what code you tried to use to add a WP rewrite rule. As long as all query var names are correct, there’s surely a way to make this work.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress ignores .htaccess’ is closed to new replies.