I've looked at numerous questions regarding .htaccess not working. Tried them all but it still won't work for mine.
It was still working for me before, the problem started when i deleted the .htaccess file inside the application folder.
The tutorial i was following didn't specifically mention to delete that htaccess but just to copy it to the root. So basically, when it was still working i had 2 htaccess files, with the application folder and inside the application folder.
Right now, even if i deleted the .htaccess file inside the application leaving only 1 .htaccess in my project root, it still won't work.
I still have to include 'index.php' for the url to work.
It won't necessarily show me 404 when i don't include the index.php.
It just shows me this page,
This is the content of my .htaccess file.
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
My config file.
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
Apart from that, i already tried, refreshing my wamp connection, shutting down my pc then turning it on again.
I don't know whats wrong since it worked for me the first time around even if i have 2 htaccess it still won't. Something happened when i accidentally deleted that 1 file.
My system is windows 7 32-bit, and i'm using WAMP. I already turned on rewrite module for apache on my wamp. I'm using the latest codeigniter, 3.1.2
This may also give a hint,
When i load my view, the css url won't work.
The css url shouldv been localhost/project/css/bootstrap.min.css
however, same result, same page it shows above.
I also have this on my httpd.conf on my apache.
<Directory />
AllowOverride none
Require all denied
</Directory>
I'm not sure why this works but i've found an htaccess that was specifically mentioned for a ci3 htaccess problem.
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php?$1 [L]
not much difference, just that it removed the '/' before the index.php and replaced the '/' to '?' after the index.php
Is this because i am using CI 3?