CodeIgniter Forums

Full Version: CodeIgniter on exisiting site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]emperius[/eluser]
Hello!

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

El Forum

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

Just start by reading the User Guide.

El Forum

[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

El Forum

[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.

El Forum

[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

El Forum

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

El Forum

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