SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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 com.apple.finder 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]
    </IfModule>

    And that will hopefully work

    Can someone help please.

    Regards

    Darren

  2. #2
    SitePoint Evangelist snecz's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Warsaw - the city that survived its own death.
    EMM8 - Profesjonalne Strony Internetowe
    Projektowanie Stron WWW


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •