Title: help with mod_rewrite
Last modified: August 18, 2016

---

# help with mod_rewrite

 *  [amanzi](https://wordpress.org/support/users/amanzi/)
 * (@amanzi)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/help-with-mod_rewrite/)
 * This is probably an apache problem rather than a WordPress problem, but I’m hoping
   that someone in these forums has had experience getting mod_rewrite working with
   apache2 on Debian. I’d like to use the mod_rewrite features in apache2 to get
   the permanlinks working as well as the Faked Folders plugin. I have the mod_rewrite.
   so module loaded in my apache2, and I have an .htaccess file in the root of my
   website with the following line in it: “RewriteEngine On” but when I try to open
   any page, I get an Error 500 message. If I remove the “RewriteEngine On” line
   from my .htaccess file the website starts working again.
    Can anyone help me 
   please? Thanks in advance… Stuart

Viewing 1 replies (of 1 total)

 *  Thread Starter [amanzi](https://wordpress.org/support/users/amanzi/)
 * (@amanzi)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/help-with-mod_rewrite/#post-93797)
 * Thought I would post the answer to my own question here so that it may help others…
   
   There were two problems that were causing the 500 error messages, the first was
   that my virtual directory config file had the following setting: `AllowOverride
   AuthConfig` I changed it to this: `AllowOverride All` After I did this I got 
   some new errors in my logs: `RewriteRule: bad flag delimiters` To fix this, I
   just regenerated the permalinks code and pasted it into the .htaccess file making
   sure not to past any extra spaces or line breaks. After this it all worked.

Viewing 1 replies (of 1 total)

The topic ‘help with mod_rewrite’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [amanzi](https://wordpress.org/support/users/amanzi/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/help-with-mod_rewrite/#post-93797)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
