How to change the main URL in Codeigniter

0

I need to change the URL of a site in Codigniter, in the root of the site: "public_html" has the "application" folder of the Framework and has the folder: "site_novo" that is where the current site is.

When you open the domain of the site it directs you to the folder of the new site ... thus: www.meudomio.com.br/site_novo

* What file do I change within the Codeigniter folder structure to change this index URL? For example, if I want to change the folder name (site_novo) to another folder, the redirect will always play to the old name ...

Editing $config['base_url'] has no effect:

The site continues to be directed to: www.dominio.com.br/site_novo

    
asked by anonymous 17.04.2018 / 15:37

2 answers

1

In the application folder, you have another folder called config. There change the value of $config['base_url'] = 'http://www.pagina.com/que/voce_quiser';

    
17.04.2018 / 15:47
0

Take a look at your .htaccess see if you have a line like this:

RewriteRule ^(.*)$ /site_novo/index.php?/$1 [L]

If you change to:

RewriteRule ^(.*)$ /teste/index.php?/$1 [L]
    
17.04.2018 / 16:12