Forums

Internal Server Error when creating .htaccess (3 posts)

  1. tom5955
    Member
    Posted 1 year ago #

    Hey,

    I'm attempting to re-do the permalinks on my site because I've installed buddypress, and updating the permalinks is require apparently. So I create a .htaccess file and place it in the root folder, and copy the bit which I've copied from the permalinks page:

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

    Copy it into the ftp client and upload it, and I get a Internal Server error. Then I tried deleting all the text in the .htaccess file, thinking it might be something wrong with the code - still an issue. I delete the .htaccess file, and the blog works perfectly again. So i'm not sure what I can do to get the blog up and running with buddypress installed.

    Any help would be greatly appreciated.

    Thanks,
    Tom

  2. songdogtech
    Member
    Posted 1 year ago #

    Sounds like you have the wrong character encoding or wrong line endings in the file. Create the blank .htaccess file with FTP, not on your PC; most FTP clients have a "new file" command and will create a blank file with the right encoding for your server.

  3. tom5955
    Member
    Posted 1 year ago #

    Thanks, that worked great.

Topic Closed

This topic has been closed to new replies.

About this Topic