EllisLab text mark
Advanced Search
     
CodeIgniter on exisiting site
Posted: 21 June 2007 05:06 AM   [ Ignore ]
Joined: 2007-06-21
94 posts

Hello!

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

 Signature 

everything about Moldova

 
Posted: 21 June 2007 08:26 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-06-12
47 posts

Is perfectly doable wink

Just start by reading the User Guide.

 
Posted: 21 June 2007 08:36 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-06-21
94 posts

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

 Signature 

everything about Moldova

 
Posted: 22 June 2007 02:33 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2006-07-10
485 posts

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.

 
Posted: 22 June 2007 03:22 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2007-06-21
94 posts
esra - 22 June 2007 06:33 AM

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.

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 SEO

 Signature 

everything about Moldova

 
Posted: 22 June 2007 06:21 AM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2006-07-23
148 posts

just make a 301 redirect for existing pages to the new CI pages and google will keep the pagerank

 Signature 

running man webdevelopment

 
Posted: 22 June 2007 07:15 AM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2007-06-21
94 posts

But still maybe someone knows how I can leave index.php file as is and add new controllers and etc?
smile

 Signature 

everything about Moldova