1

In codeignitor .htaccess not working on redhat server the same .htaccess is working perfectly on local server ie xampp also changed 'AllowOverride None' to 'AllowOverride All' . Please give answer with respective to 'redhat' only.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
</IfModule>

phpinfo() shows Apache Configuration

sam
  • 39
  • 3

1 Answers1

0

The rewrite module seems to be loaded from your screenshot. you can also enable .htaccess from within your VirtualHost by adding this stanza:

  #Enable readin .htaccess
  <Directory "/var/www/html/mysite">
    AllowOverride All
  </Directory>
Dejan
  • 2,053
  • 3
  • 23
  • 38