Title: Problem adding a rewrite rule
Last modified: August 20, 2016

---

# Problem adding a rewrite rule

 *  Resolved [srcobranza](https://wordpress.org/support/users/srcobranza/)
 * (@srcobranza)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/problem-adding-a-rewrite-rule/)
 * I want to do this redirection:
 * ^/?stream/(.*)/(.*)\.[mp4|m4v|ogv|webm|acc|mp3|m4a|ogg]{3,4}$ [http://$1.bitshare.com/download.php?d=$2](http://$1.bitshare.com/download.php?d=$2)[
   R]
 * The first thing i’ve tried was to put that into my htaccess file. It didn’t work(
   i guess because i’m using a custom structure for posts permalink).
 * Then i’ve tried some examples from the codex, and installed a plugin (Rewrite
   analyzer) to verify that the rules were added properly. Here you can see the 
   rules i added:
 * [http://lh4.googleusercontent.com/-Pp-sRjkOOzc/TlurwnyKBpI/AAAAAAAAGhs/3mYteafid3I/rules.PNG](http://lh4.googleusercontent.com/-Pp-sRjkOOzc/TlurwnyKBpI/AAAAAAAAGhs/3mYteafid3I/rules.PNG)
 * But when i visit mysite.com/geostate/1 it redirects to the index page, and mysite.
   com/testt/1 show me a 404 error.
 * I really don’t know what is happening.

Viewing 1 replies (of 1 total)

 *  Thread Starter [srcobranza](https://wordpress.org/support/users/srcobranza/)
 * (@srcobranza)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/problem-adding-a-rewrite-rule/#post-2269147)
 * It was just change [R] to [R,L].

Viewing 1 replies (of 1 total)

The topic ‘Problem adding a rewrite rule’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [srcobranza](https://wordpress.org/support/users/srcobranza/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/problem-adding-a-rewrite-rule/#post-2269147)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
