Same Question NOT Found Answer: Using Sub Folder As ROOT

Hi. i read same question but i could not find the near answer. There is a web folder architecture that is recommended by expert CI'ers -by the way i am new at CI :


i tried above with .htaccess file:

RewriteEngine On

RewriteRule ^$ /public/ [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1

This is throwing CI's 404 not found. when url like that

in welcome.php, app and system folder variables changed as ../application and ../system. And i don't want to see sub folder name (public) in url. Is there any solution? Thank you

ok. no answer from community. the problem solving is found for now. change config.php $config['uri_protocol'] into 'PATH_INFO' from 'AUTO'. i suppose this doesn't make unexpected stuation for my project in future. thanks anyway

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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