php - URL Rewriting for Wordpress -


i working on wordpress project , add region code on url. similar one: link

i applied code mentioned , tweaked fit needs. did redirect add region code url: i.e. example.com/category redirected example.com/us/category. works on pages , product categories, however, it's redirect loop on hompage, product pages , posts.

just mention, using wpml website in english , not using language translations. need show region-specific content.


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -