Update htaccess

Posted on 2007-07-26
Last Modified: 2008-01-09
Using OS X v3.3.9   and   wordpress v2.1.1

I want to update my permalinks but get an error message = You should update your .htaccess now.

I am not sure what to do here. Thanks!
Question by:ronchicago

    Expert Comment

    Do you have full FTP access? Go into your site and ensure you have a .htaccess file and not htaccess.txt, you can do this easily by renaming it so rename the htaccess.txt file to just .htaccess make sure you do not put a file extension on it.

    Once you have confirmed that you have a .htaccess file you need to make it writeable or the permissions should read 666

    Author Comment

    here is my latest comment...

    i have read the various posts on the wordpress forum regarding updating htaccess but each does not tell me what i should do with my setup:

    1) i am on a mac and apache server and have mod_rewrite active.

    2) i am using the default config = ugly (any 'strong" reason to change to pretty?)

    3) when i try to update permalinks i get the update htaccess blurb. there are no suggested rules at the bottom of my page. note: i get this message on an older site and brand new one with only two posts on it.

    4) i changed the chmod on my htaccess to 666 and will go back to 644 as needed

    5) i read the codex link =

    my question is...

    what do i precisely need to do to update the permalinks and is it best practice to go pretty, and if so, an easy fix from ugly with both my old and new site. is there anything else i need to know?

    Author Comment

    sorry, to answer your questions earlier...

    1) yes i and full access via cpanel including shell, etc.

    2) yes, i have a .htaccess with no content in this file

    Accepted Solution

    If you can access your /wp-admin/, please goto /wp-admin/templates.php?file=.htaccess

    Once there, if the box is blank fill it with:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    Once done click 'update' (or whatever that button on the bottom is), and off you go.

    If this doesn't work, you will need to make a file on your computer called '.htaccess'. If your computer does not allow you to do this you can simply name it something else for now. Once done, paste the above content into it and save it. Upload it to your "website root" (where you put files for people to see, and where you have WordPress) and rename it to ".htaccess".

    Off to the races.
    Hope this helps.
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
    In Part I (, I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
    The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and Log…
    The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now