Support » Fixing WordPress » OS X & .htaccess

  • Hey mac people…help me out here. I want to use the permalinks feature and so I need an .htaccess file.

    I’ll create it in BBEdit. I understand that I’d put it in same directory as index.php
    What rights do I need to change? Can somebody please explain this to me as I would be a baby? 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • i tried getting a .htaccess file running on my os x box for ages but never did figure it out, i think the default install of apache stops them so you may need to edit your apache config file first

    hope this helps

    I have it running np. Open up terminal and change to the your install directory.

    cd /library/web server/documents (if you’re using the main)
    cd ~/sites/ (if you’re using the ~username site in your home folder)

    You may need to add another folder onto that path depending on the exact location, but once there type
    touch .htaccess
    chmod 666 .htaccess (you might be able to substitute 644 depending which location you’re using and your apache setup.)

    Your .htaccess should now be there and be writeable by wordpress.

    You might also have to edit your username.conf file. Mine contains:
    <Directory "/Users/ian/Sites/">
    Options Indexes MultiViews
    AllowOverride all
    Order allow,deny
    Allow from all

    <Directory "/Library/WebServer/Documents/">
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all

    You will have to stop and restart apache for it it to work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘OS X & .htaccess’ is closed to new replies.