500 Internal Server Error whenever I edit .htaccess (2 posts)

  1. calciumwaste
    Posted 6 years ago #

    I'm trying to change the permalinks on one of my blogs. When I do so, it tells me to update my .htaccess file:

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    My current .htaccess file is blank (just # BEGIN WordPress and # END WordPress). When I added in the lines of code it told me to, every page on my blog including the admin panel was giving me a 500 Internal Server Error. So I reuploaded the blank file, changed the permissions to 777, and tried to change the links again, but I get the same error about .htaccess not being writable.

    How can I make .htaccess writable? or how can I edit it myself without destroying everything?

  2. Samuel B
    Posted 6 years ago #

    you can chmod file to 666 and try

    or add rules manually

Topic Closed

This topic has been closed to new replies.

About this Topic