I have created application in codeigniter.Both Front end and Back end.
My Folder Structure is
Pariwar -> Root
---- css
---- js
---admin
---- .htaccess
---- index.php
---- css
---- js
--application
----admin
---- views
=--- models
---- controllers
----Front
---- views
=--- models
---- controllers
I have created the structure using http://webduos.com/create-an-admin-panel-with-codeigniter/.
when I accessing Front end using http://localhost/Pariwar/ all working fine.
But when I trying to accessing back-end using http://localhost/Pariwar/admin/ the css and js are not loading and showing error.
I have set $config['base_url'] = 'http://localhost/Pariwar/'; for Front End $config['base_url'] = 'http://localhost/Pariwar/admin/'; for back end.
Also made proper changes in index.php file.
Also my .htaccess file is
RewriteEngine on RewriteCond $1 !^(index.php|images|css|fonts|js|uploads|upload|img|floorplan|mainslider|projectslider|robots.txt) RewriteRule ^(.*)$ http://localhost/Pariwar/index.php/$1 [L] for front folder
And
RewriteEngine on RewriteCond $1 !^(index.php|images|css|fonts|js|uploads|upload|img|floorplan|mainslider|projectslider|robots.txt) RewriteRule ^(.*)$ http://localhost/Pariwar/admin/index.php/$1 [L] for admin.
Please help me to solve this issue.