• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple applications server setup

#1
Hello everyone,
        I have created a multiple applications inside of  codeingiter which share the common system folder by following the guide in Code Igniter documentation.
        The setup is as follows
         (I have removed the application and system folder outside the public_html as I have read it provides security)
         codeigniter/
              application/
                   project1/
                   project2 
              system/
              webroot/
                  index.php  -Points to project1 
                  project2.php  --Points to project2 

          I am able to call my applications in the following way 
  • example.com
  • example.com/project2.php
    Now the problem is that I want to setup these on a server as the following Urls.
  •  example.com
  • project2.example.com
    How can I achieve this ...I am a newbie to codeigniter..                        
Reply

#2
if you are able to call it this way 
  • example.com

  • example.com/project2.php
    Then on server it should still be.
  •  example.com/project2
    if not then use two domains
Reply

#3
You need a separate subfolder in your webroot to be able to load different sites based on domain.
webroot/
project1/index.php
project2/index.php
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.