title: Friendly URL redirection not working
body: <p>I've trying to use url redirection for 3 things:</p>
  
  <ol>
  <li>Redirect to HTTPS </li>
  <li>Redirect from domain.com to www.domain.com</li>
  <li>Redirect from friendly url to real url without changing the url in the browser</li>
  </ol>
  
  <p>The problem is that redirecting from friendly url, changes the url to the real one. I'd like to avoid it. Any suggestion?</p>
  
  <p>Here's the piece of code in htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine on
     RewriteCond %{HTTPS} !=on
     RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  
     RewriteCond %{HTTP_HOST} ^inconclusos.com [NC]
     RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  
     RewriteBase / 
     RewriteCond %{REQUEST_FILENAME} !-d   
     RewriteCond %{REQUEST_FILENAME} !-f   
     RewriteRule ^(\w+)/?$ https://www.example.com/index.php?s=$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Thanks,
  Pau</p>