Guys. I am using codeigniter. I used .htaccess to remove 'index.php' from my url and added "Allow from all" to my default.conf. "index.php" was successfully deleted and the site started. But since the latest apache update, .htacess stopped working and index.php became necessary in the url. This is my new updated 000-default.conf.
<VirtualHost *:80>
I added the following lines to my 000-default.conf, but didn't work:
AllowOverride all Order allow,deny Allow from all
My .htaccess is good because it worked fine until the last Apache update.
Options -Indexes RewriteEngine on RewriteBase / RewriteCond $1 !^(index\.php|assets|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond %{REQUEST_URI} ^htaccess/ [NC,OR] RewriteCond %{REQUEST_URI} ^system/function/ [NC,OR]
My apache version is 2.4.6. Now, please tell me what to add to the 000-default.conf file to get .htaccess and remove "index.php" from my site url.
PS: I am using ubuntu 12.04. mod_rewrite is enabled. I included 000-default.conf, that is, it is available in the folder with the sites included.
ubuntu codeigniter .htaccess apache2
Codeaddict
source share