WordPress .htaccess ignored from local apache server

I have a local WordPress setup where I want to develop plugins and themes. I’ve noticed that the url will include always index.php. I’ve tried to modify the permalink structure but nothing changed. At the moment my .htaccess file looks like this

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I’ve installed recently a new version of php using MacPorts and I’m not sure if mod_rewrite is working correctly. How I can make things working correctly and have http://localhost:5000/pagename instead of http://localhost:5000/index.php/pagename?