Support » Fixing WordPress » WordPress not writing .htaccess on permalink edit

  • shatchp


    I’ve been reading like crazy, trying to find someone with a similar problem…but to no avail. Here’s the deal:

    I have a bunch of wordpress-powered sites on shared hosting, and on all of them, my ‘pretty’ edits of permalink structure have resulted in the creation of an .htaccess file with no problems.

    So, I’m working on another one, even using a theme I’ve used on two others…and no .htaccess is being created. So, my links don’t work. I even copied the .htaccess from a nearly identical site, added it, but that didn’t work either. It’s acting like there’s no mod_rewrite, but it can’t be a hosting issue because all the other sites are fine. I upgraded WP, re-installed everything, and no go.

    I’m officially stumped…any input?



Viewing 1 replies (of 1 total)
  • whooami



    wordpress writes the same stuff to EVERY .htaccess where a blog is installed in the root directory.

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

    and wordpress needs that file to be writable by the webserver in order to edit it. If it cant write to it, it tells you to do so, right there on the permalinks page.

    And fyi, if you want to confirm the availability of mod_rewrite on the host server, just remove the the <IfModule mod_rewrite.c> and </IfModule> from around the code above.

    If you get a 500 error, mod_rewrite is NOT available,

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress not writing .htaccess on permalink edit’ is closed to new replies.