.htaccess - PHP CodeIgniter (how to make public folder) -


i'm new in codeigniter.

i made public folder, want put css/js/images folders.

my setup that:

application    cache    config    controllers    public        css        js        images   ....   ....   .... 

my .htaccess is:

<ifmodule mod_rewrite.c>     rewriteengine on     rewritebase /moviesmvc/      #removes access system folder users.     #additionally allow create system.php controller,     #previously not have been possible.     #'system' can replaced if have renamed system folder.     rewritecond %{request_uri} ^system.*     rewriterule ^(.*)$ /index.php?/$1 [l]      #when application folder isn't in system folder     #this snippet prevents user access application folder     #submitted by: fabdrol     #rename 'application' applications folder name.     rewritecond %{request_uri} ^application.*     rewriterule ^(.*)$ /index.php?/$1 [l]      #checks see if user attempting access valid file,     #such image or css document, if isn't true sends     #request index.php      rewritecond %{request_filename} !-f     rewritecond %{request_filename} !-d     rewriterule ^(.*)$ index.php?/$1 [l]      </ifmodule>      <ifmodule !mod_rewrite.c>         # if don't have mod_rewrite installed, 404's         # can sent index.php, , works normal.         # submitted by: elliothaughin      errordocument 404 /index.php </ifmodule>  

how can make public folder public?

/////////////////////////

you really don't want to put public folder inside application folder. directory structure should this

 -- application  -- system  -- public     -- css     -- js     -- images     -- index.php     -- .htaccess 

this best practice follow , save lot of time , potential problems in future


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -