1

I have Ubantu 14.04 machine also I checked Link

My phpinfo() says rewrite_module is Enable also I have done changes into config.php

$config['index_page'] = '';

and below is my .htaccess file on root

RewriteEngine On
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Community
  • 1
  • 1
Vipin Sharma
  • 421
  • 5
  • 24
  • may duplicate of this: http://stackoverflow.com/questions/20169545/codeigniter-3-remove-index-php-problems – Sagar Guhe Mar 10 '16 at 11:53
  • yes I know but i did't get any solution from above link – Vipin Sharma Mar 10 '16 at 11:55
  • `base_url()` is set [correct](https://github.com/bcit-ci/CodeIgniter/blob/develop/application/config/config.php#L14)? Also try with `RewriteRule ^(.*)$ index.php?/$1 [L]`. – Tpojka Mar 10 '16 at 12:16
  • yes @Tpojka, thanks for reply me , I got solution just added Order allow,deny AllowOverride All Allow from all Require all granted into file /etc/apache2/sites-available/000-default.conf and it's woking fine – Vipin Sharma Mar 10 '16 at 12:18

2 Answers2

0

Try this one

Options +FollowSymLinks
IndexIgnore */*
# Turn on the RewriteEngine
RewriteEngine On
#  Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Vinie
  • 2,983
  • 1
  • 18
  • 29
0

I got solution just added

<Directory /var/www/html >
   Order allow,deny
   AllowOverride All
   Allow from all
   Require all granted 
 </Directory> 

into file /etc/apache2/sites-available/000-default.conf and it's working fine

Vipin Sharma
  • 421
  • 5
  • 24