Redirection Codeigniter

1

I have developed an application in Codeigniter 3 in the company where I work and need to replace an old one. The situation is that the url address will be changed but we can not deactivate the previous one, the redirection of those who enter through the previous link will be redirected to the new one and we have articles like those of a blog. For example: link I need you to be redirected to link

I was trying to do this through codeigniter through routes.php, but without success.

Thanks in advance for the help.

    
asked by anonymous 24.08.2015 / 14:37

1 answer

2

Try to put the URL in the old project config: Ex:

$config['base_url'] = ' http://novodomain.com.br';

When the user accesses the old URL, it redirects to the new one.

    
27.08.2015 / 14:31