• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter tom5955

    (@tom5955)

    Thanks, that worked great.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Internal Server Error when creating .htaccess’ is closed to new replies.