Ready to get started?Download WordPress


OS X & .htaccess (4 posts)

  1. Tommy
    Posted 9 years ago #

    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? ;)

  2. brywebster
    Posted 9 years ago #

    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

  3. Ryan Duff
    Posted 9 years ago #

    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.

  4. iand
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.