CodeIgniter Forums
URLs from 2.3 to 3.0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: URLs from 2.3 to 3.0 (/showthread.php?tid=62085)



URLs from 2.3 to 3.0 - skaler - 06-08-2015

Hi people,

i'm trying to do a migration.

In this project there are lot of URLs without the the rule in routes, and is called directly from code.

For example i have A with the this link:

http://gsh.coexia.net/multi/work

And not works...

I must to change the capital letter of the controller Multi and it woks.

http://gsh.coexia.net/Multi/work

I need to change all the links of code and put the capital letter of controller?

Please i need help!! I can't change the URLs because is a old project and have lot of url indexed in google for example.

Thanks!!


RE: URLs from 2.3 to 3.0 - Blair2004 - 06-08-2015

Hi,
CodeIgniter let you override System functions, and so you can create a custom function which handle url, maybe (site_rul()), in that custom function, you can uppercase or lowercase (even ucWord) each URL string.


RE: URLs from 2.3 to 3.0 - Avenirer - 06-08-2015

You don't have to overwrite the links. You only have to rename your controller files with capital first letter "welcome.php" => "Welcome.php"