title: .htaccess - string in url without subfolder
body: <p>The URL is the following <code>http://local.example.com/features.html</code> and what I need is to add a text like "country" <code>http://local.example.com/us/feature.html</code> but with the code I have when I click on the URL the site shows a 404 error</p>
  
  <p>This is only visual without creating a US sub-folder.</p>
  
  <p>The code...</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST} local.example.com$ [NC]
  RewriteCond %{HTTP_COOKIE} location=us [NC] --&gt; CHECK COOKIE FOR ACTION
  RewriteCond %{REQUEST_URI} !^/us/  --&gt; EXCLUDE US FOR REDIRECT LOOP
  RewriteCond %{REQUEST_URI} !^/blog/ --&gt; EXCLUDE BLOG FOLDER WITH WORDPRESS
  RewriteRule ^(.*)!\.(css|js|png|jpg)$ http://local.example.com/us/$1 [R=302,L]
  </code></pre>