LAMP在var / www / html而不是project中显示index.php

i have installed LAMP on Ubuntu-16.04.

Now in my var/www/html I have created a file called index.php which shows info about my PHP.

Also i have a folder called FMS which is my Codeigniter Project Folder.

When I fire localhost/FMS it shows the url to be : localhost/FMS/secure/login

but displays the index.php page

is this issue of codeigniter/.htaccess ??

Or is there anything wrong with my server configuration ?

.htaccess file:

<IfModule mod_rewrite.c>
  RewriteEngine On
  # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
  #  slashes.
  # If your page resides at
  #  http://www.example.com/mypage/test1
  # then use
  # RewriteBase /mypage/test1/
  RewriteBase /FMS
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
 # RewriteRule ^(.*)$ index.php?/$1 [L]
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>

<ifModule mod_headers.c>
Header add Access-Control-Allow-Origin "*"
</ifModule>

<IfModule !mod_rewrite.c>

apache2.conf

<Directory /var/www/html>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>