title: Base url in CodeIgniter HMVC lose www in secondary module
body: <p>I have a question please... this is my project where I use CI 3x HMVC in Linux hosting I have an error:</p>
  
  <p><code>.htaccess</code> is this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Options +FollowSymlinks
  RewriteEngine on
  RewriteBase /
  Options -Indexes
  
  
  ### Redirigir la URL sin www a con www ### 
  RewriteCond %{HTTP_HOST} ^myserver.com
  RewriteRule (.*) https://www.myserver.com/$1 [R=301,L]
  
  RewriteCond %{HTTPS} off
  RewriteCond %{HTTP_HOST} ^myserver.com [OR]
  RewriteCond %{HTTP_HOST} ^www.myserver.com
  RewriteRule (.*) https://www.myserver.com/$1 [R=301,L,QSA] #Falta www
  
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  
  RewriteCond $1 !^(index\.php|global|favicon\.ico|javascript)</code></pre>
  </div>
  </div>
  </p>
  
  <p>In my file config.php I have this line:</p>
  
  <pre><code>$config['base_url'] = 'https://www.myserver.com/';
  </code></pre>
  
  <p>When I load <code>https://www.myserver.com/</code> in the main "module" (front) I see in all my forms that all have this format:</p>
  
  <pre><code>&lt;form action="https://www.myserver.com/controllerxxxx" action="post"....
  </code></pre>
  
  <p>The problem is when I load the <code>https://www.myserver.com/admin</code> module... I see in all my forms that have this format...</p>
  
  <p>
  
  <p>The difference is in "ADMIN" that my base_url is <code>https://myserver.com/</code> Without <em>WWW</em>.</p>
  
  <p><em>What is wrong? Can you help me please?</em></p>
  
  <p>I need to solve this problem and keep my URL server with <em>WWW</em> in Front and Admin modules.</p>
  
  <p>Thanks!</p>