Title: mod_rewrite help
Last modified: August 18, 2016

---

# mod_rewrite help

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [18 years, 11 months ago](https://wordpress.org/support/topic/mod_rewrite-help/)
 * This is an indirect WordPress question and more of an Apache mod_rewrite question.
 * I have been using a translate plugin which I want to disable. Disabling it is
   not a problem, but I want to re-direct the old permalinks from
 *     ```
       /year/month/day/post-slug-here/es/
   
       or
   
       /$1/$2/$3/$4/$5/
       ```
   
 * to send a re-direct to
 *     ```
       /year/month/day/post-slug-here/ (less the es/)
       ```
   
 * So that anyone hitting the old URL will go to the original post.
 * I figured that I put into my wordpress/.htaccess file
 *     ```
       RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/$ /$1/$2/$3/$4/ [R=301,L]
       ```
   
 * The $5 is missing on purpose; I want the language part removed.
 * My permalinks are working and .htaccess correctly sends everything to /index.
   php. Putting the new RewriteRule before or after the WordPress portion does not
   seem to matter.
 * I have added items to my .htaccess before ([This trick from whooami works well](http://www.village-idiot.org/archives/2004/11/30/preparing-for-spam/))
   but I can’t get this one to work.
 * Any help would be appreciated.

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

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/mod_rewrite-help/#post-9591175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
