URL rewrite with special characters
-
Good evening, guys!
I haven’t done URL rewriting and such for a long time, but I need it to be done soon.
I’ve tried some things out like add_rewrite_rule, but for unknown reasons it just won’t work as I want it to operate.What I need to rewrite is for example: https://www.example.com/category1
It should rewrite the following URL: https://www.example.com/shop?filters=marken%5B20%5DSo my unsuccessful code was:
add_rewrite_rule(‘category1’, ‘shop?filters=marken[20]’, ‘top’);It just leads me to the index page instead of the shop page.
I think the bracket characters are used in the htaccess-language, but I don’t know how to avoid issues with them.I hope somebody can help me out of this misery!
Best regards! ??
- The topic ‘URL rewrite with special characters’ is closed to new replies.