CodeIgniter Forums
CodeIgniter on exisiting site - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: CodeIgniter on exisiting site (/thread-1701.html)



CodeIgniter on exisiting site - El Forum - 06-21-2007

[eluser]emperius[/eluser]
Hello!

I have already made site and I want to use CodeIgniter only for new pages.
How can I do this?


"CodeIgniter on exisiting site" - El Forum - 06-21-2007

[eluser]ztinger[/eluser]
Is perfectly doable Wink

Just start by reading the User Guide.


"CodeIgniter on exisiting site" - El Forum - 06-21-2007

[eluser]emperius[/eluser]
I\'ve read the user guide

but i didn\'t find out ho to do this

I was trying to remove default controller and etc.

If you know where can i read about this please give me a link


"CodeIgniter on exisiting site" - El Forum - 06-21-2007

[eluser]esra[/eluser]
If your existing site does not use authentication (user accounts) and sessions, the simple answer is to provide links in the navigation system of the existing site to the CodeIgniter application and links on the navigation system of the CodeIgniter application to the existing site. This is usually done via a menu system. If the existing site uses authentication and sessions, you either need to adapt the existing site to use CodeIgniter code for handling authentication and sessions or vice versa.

However, you would be better off converting the existing site to CodeIgniter\'s MVC architecture if nothing else as a learning experience.


"CodeIgniter on exisiting site" - El Forum - 06-22-2007

[eluser]emperius[/eluser]
[quote author=\"esra\" date=\"1182508413\"]If your existing site does not use authentication (user accounts) and sessions, the simple answer is to provide links in the navigation system of the existing site to the CodeIgniter application and links on the navigation system of the CodeIgniter application to the existing site. This is usually done via a menu system. If the existing site uses authentication and sessions, you either need to adapt the existing site to use CodeIgniter code for handling authentication and sessions or vice versa.

However, you would be better off converting the existing site to CodeIgniter\'s MVC architecture if nothing else as a learning experience.[/quote]

When I trying to use codeigniter the index page moves to default controller. I cant use as index existing index.php file.

I don\'t know how to include codeigniter files and use codeigniter for new pages only with the current index.php file.

unfortunately I can\'t convert existing files into codeigniter MVC because almost all the pages have already google page rank and if I change links to pages it will be bad for


"CodeIgniter on exisiting site" - El Forum - 06-22-2007

[eluser]frenzal[/eluser]
just make a 301 redirect for existing pages to the new CI pages and google will keep the pagerank


"CodeIgniter on exisiting site" - El Forum - 06-22-2007

[eluser]emperius[/eluser]
But still maybe someone knows how I can leave index.php file as is and add new controllers and etc?
Smile