Hello all,
This is my first site project using codeigniter.
The frontend is all html and I am using codeigniter for the backend.
Everything was working fine until I added the frontend files and modified my htaccess file to not redirect to index.php but instead to index.html.
htaccess looks like this
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !/(front_assets|back_assets)/
#RewriteRule ^(.*)$ ./index.php/$1 [L]
This works okay but now from the frontend when I want to access the codeigniter stuff, it access the php file just fine but I cannot access my other views/etc..
So what I then did was changed htaccess back to
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !/(front_assets|back_assets)/
RewriteRule ^(.*)$ ./index.php/$1 [L]
and in my header inside of codeigniter redirected back to the index.html if the user was not logged in, but now i get a 404 back the other way! However everything else through codeigniter works at this point...
I am confused.
Right now my htaccess file is back to
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !/(front_assets|back_assets)/
#RewriteRule ^(.*)$ ./index.php/$1 [L]
I essentially want to load the frontend first and then load codeigniter when the user has logged in and been authenticated.
Any help is appreciated, thanks!
You can check the site out at http://ccc.the-prototype.com click log in from the main page to access the backend codeigniter.