I am using ubuntu 14.04 and have LAMP environment. I have one of the project in dir /var/www/html/project1 . It can't access the .htaccess file for rewriting url rules.
For that i have to change in /etc/apache2/apache2.conf file
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All # change None to All
Order allow,deny
allow from all
Require all granted
</Directory>
But after this change my Apache server gives an error "Internal Server error"
And If I'll change 'AllowOverride None' then site is running correctly But .htaccess file doen't work.
sudo a2enmod rewrite
followed bysudo service apache2 restart
. If yes, then I think the issue is in your .htaccess file. Perhaps add its content to your question.