Forums

[resolved] Problem adding a rewrite rule (2 posts)

  1. srcobranza
    Member
    Posted 9 months ago #

    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 [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

    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.

  2. srcobranza
    Member
    Posted 9 months ago #

    It was just change [R] to [R,L].

Reply

You must log in to post.

About this Topic