Hey everyone! π
I'm looking for some advice and insights from those more experienced with routing and region-specific content delivery. Here's the scenario:
The Goal:
When a user visits our main domain (e.g., XY.com), we want to automatically redirect them to a region-specific URL like XY.com/us if they're from the US (or another region, depending on their location).
Furthermore, when they visit a path like XY.com/us/products, they should only see products available in their specific region.
The Challenge:
I'm trying to figure out the best approach to implement this efficiently. I'm particularly interested in hearing about:
Best practices for region detection and redirection.
How to manage content delivery to ensure region-specific data is fetched and displayed.
Any pitfalls or considerations to keep in mind while implementing this.
I'm eager to hear your thoughts and approaches on this. Any suggestions or advice would be greatly appreciated! π
Thanks in advance for sharing your expertise!