Permalink not working in Apache on Linux

I am not sure about the plugin you are using but the above permalink structure worked for me. This is the code I used.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Please note I had to enable mod_rewrite module for this to work. After enabling, make sure you restart apache.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)