Homepage working but other page showing 404 error

 

I am using digitalocean hosting. Home page of my website working properly but other link showing 404 error


Answer
 

May be you need to enable mod rewrite
               sudo a2enmod rewrite
               sudo service apache2 restart

Now change /etc/apache2/apache2.conf

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None   //change this line to AllowOverride All
    Require all granted
</Directory>