0

I have a two codeigniter applications in example.com/1/ and example.com/2/ .I want to load one of them as default when a user access example.com and the other one should be also accessible with full url. what is the proper method to do it.? is redirecting the user to the default app in .htaccess file and keep the applications separate SEO friendly ?

1 Answer 1

1

You can do it by renaiming your second application's folders.

 application
 system
 index.php
 application2
 system2
 index2.php

Then in index2.php :

$system_path = 'system2';
$application_folder = 'application2';

http://www.codeigniter.com/user_guide/general/managing_apps.html

Sign up to request clarification or add additional context in comments.

1 Comment

also Application1 and Application2 could share the same system folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.