how ill show the CI app in subfolder? |
[eluser]Asinox[/eluser]
Hi, i need to upload the CI app because i need to show the app to my customer, but i want to know how ill show the CI APP in subfolder like" http://www.domain.com/app" ? Thanks
[eluser]Nathan Moore[/eluser]
Simply place all the CI files in the subfolder and proceed like normal. Code Igniter does not absolutely need to be run in the web root. I hope that helps.
[eluser]Asinox[/eluser]
ok.. but i hav a litter problem I hav 2 domains and 1 hosting where the domain for the CI app is redirect to the another domain/subfolder the second domains is "masked" and if u write http://www.second_domain/ all is fine dont redirect to the first domain/subfolder... now the question is: in the config file how ill put the base_url?, http://www.first_domain/sub_folder/ciAPP? or http://www.second_domain/ciAPP? <- here i want the CI app i dont know if i was clear... Thanks
[eluser]Asinox[/eluser]
now im trying to install in http://www.domain.com/subfolder/ci/ but i got the 404 not found pages
[eluser]Nathan Moore[/eluser]
If you wrote some apache redirects in the .htaccess file, you could use the http://www.second_domain/ciAPP as your base_url. Essentially, you would just be redirecting and pulling content from the actual location of the CI app.
[eluser]Asinox[/eluser]
not, im not wrote nothing to redirect im new with CI, my hosting is a godaddy, but in the wiki i found some tips about its, i hav just this .htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [L] Now i try to access the website from the normal domain and i got the 404 not found
|
Welcome Guest, Not a member yet? Register Sign In |