title: How to have different /servers with same Domain?
body: <p>I have a website <code>foo.com</code> on wordpress and I want to do this <code>foo.com/mexico</code>, <code>foo.com/venezuela</code>, delivery different <code>/server</code> for each city with the same domain (without wordpress multisite).</p>
  
  <p>I'm not asking about to detect ip by city but server and/or domain/dns configuration to do that.</p>
  
  <p>I know there is other ways to accomplish this, but want to know about this one.</p>
  
  <p>Here is an example: </p>
  
  <p><a href="http://www.vice.com/pt_br" rel="noreferrer">http://www.vice.com/pt_br</a></p>
  
  <p><a href="http://www.vice.com/es_co" rel="noreferrer">http://www.vice.com/es_co</a></p>
  
  <hr>
  
  <p><strong>EDIT SOLUTION</strong></p>
  
  <p>This was my solution:</p>
  
  <ol>
  <li>Create a subdomain, example.foo.com pointing to another server.</li>
  <li>Create a folder on the main server with the name i wanted for the
  link, for example 'mexico'</li>
  <li><p>Inside this folder created a .htaccess:</p>
  
  <p>RewriteEngine ON<br>
  RewriteCond %{REQUEST_URI} ^/mexico
  RewriteRule ^(.*)$ http:// example. foo. com/$1 [R=301,L,P</p></li>
  </ol>
  
  <p>This works for me. If i want another <code>/server</code> i just repeat with another name, example 'venezuela'. The subdomain name will be hide by the .htaccess and this 'example.foo.com' will look like this 'foo.com/venezuela'.</p>