I have a website foo.comon us wordpress, and I want to do it foo.com/mexico, foo.com/venezuela, shipping different /serverfor each city with the same domain (no wordpress multisite).
I do not ask for ip detection in the city, but for the server and / or setting up the / dns domain to do this.
I know there are other ways to do this, but I want to know about it.
Here is an example:
http://www.vice.com/pt_br
http://www.vice.com/es_co
Hope I clearly explained :)
SOLUTION DECISIONS
This was my solution:
- Create a subdomain, example.foo.com, pointing to a different server.
- Create a folder on the main server with the name that I wanted for the link, for example 'mexico'
Inside this folder, .htaccess is created:
RewriteEngine ON
RewriteCond% {REQUEST_URI} ^/mexico
RewriteRule ^ (. *) $Http://. Foo. com/$1 [R = 301, L, P
. /server, , "venezuela". .htaccess, example.foo.com : foo.com/venezuela.
.