Title: Internal Server Error when creating .htaccess
Last modified: August 19, 2016

---

# Internal Server Error when creating .htaccess

 *  [tom5955](https://wordpress.org/support/users/tom5955/)
 * (@tom5955)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/internal-server-error-when-creating-htaccess/)
 * 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)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/internal-server-error-when-creating-htaccess/#post-1630272)
 * 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](https://wordpress.org/support/users/tom5955/)
 * (@tom5955)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/internal-server-error-when-creating-htaccess/#post-1630620)
 * 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.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [internal](https://wordpress.org/support/topic-tag/internal/)
 * [server](https://wordpress.org/support/topic-tag/server/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [tom5955](https://wordpress.org/support/users/tom5955/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/internal-server-error-when-creating-htaccess/#post-1630620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
