Change base URL in CodeIgniter
<p>The website was build with CodeIgniter. This is accessible by typing <a href="https://test.mysite.eu" rel="nofollow">https://test.mysite.eu</a>.</p>

<p>I tried to change the base URL to remove the '<strong>test</strong>', I found this <a href="https://www.tutorialspoint.com/codeigniter/codeigniter_configuration.htm" rel="nofollow">documentation</a> and changed the following config file <code>application/config/config.php</code></p>

<p>I changed this </p>

<pre><code>$config['base_url'] = 'https://test.mysite.eu/';
</code></pre>

<p>to</p>

<pre><code>$config['base_url'] = 'https://mysite.eu/';
</code></pre>

<p>And then, everything failed. The website is not accessible anymore.</p>

<p>When I try to access to <a href="https://test.mysite.eu/" rel="nofollow">https://test.mysite.eu/</a>, this redirect me to <a href="https://mysite.eu/" rel="nofollow">https://mysite.eu/</a> but the browser display this error message : Address not found.</p>

<p>Should I change something more? Clear a cache?
I am pretty new to CodeIgniter so sorry for my lack of competence.</p>

<h2>The .htaccess</h2>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
    RewriteBase /       
    RewriteCond $1 !^(themes)   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond $1 !^(index\.php|assets|static|img|css|js|map|favicon\.ico)
    RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]
    RewriteRule ^sitemap\.xml$ ./index.php?/$1 [L,QSA]
    RewriteRule ^robots\.txt$ ./index.php?/$1 [L,QSA]       
&lt;/IfModule&gt;

&lt;IfModule mod_deflate.c&gt;
    &lt;filesMatch "\.(js|css|png)$"&gt;
        SetOutputFilter DEFLATE
    &lt;/filesMatch&gt;
&lt;/IfModule&gt;

AddOutputFilterByType DEFLATE text/ico text/html text/plain text/xml text/css application/javascript application/x-javascript application/x-httpd-php application/rss+xml application/atom_xml text/javascript
</code></pre>