Changing permalinks in wordpress to postname locally on my mac

Hi guys. I am trying to change my wordpress permalinks locally on my mac to /%postname%/ .

I use terminal to show hidden files : defaults write AppleShowAllFiles TRUE

killall Finder

but how the hell do I create a .htaccess file? Do I create it through TextEdit?

All links work fine using default permalinks but when I change the radio button to postname I get a error 404. Have created a static page for my site and the homepage displays fine but the other links get the 404 error.

Need to create htaccess file and enter the following:

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

And that will hopefully work

Can someone help please.



Maybe try with the plugin then: