rewrite rule problem

Discussion in 'Apache Migration/Compatibility' started by felosi, May 15, 2011.

  1. felosi

    felosi New Member

    i recently setup lighttpd on another ip for a client running litespeed as litespeed cant handle the flv_streaming or no equivalent. Anyway, the tube site used to be on site.com/tube , now its on tube.site.com. i put a redirect rule in htaccess like this
    Redirect 301 /tube http://tube.site.com

    It works right after litespeed is started or after I edit the .htaccess but a few minutes later it stops working.

    Any idea what this could be?
  2. NiteWave

    NiteWave Administrator

  3. felosi

    felosi New Member

    Well that wasnt the issue, htaccess rewrite was. it would work right after updating the file or restarting litespeed but a few minutes later it would not. i fixed this by putting the redirect in httpd.conf instead of .htaccess

    And as far as the flv_streaming. It sure doesnt work default and the script Im using i think requires the secdownload feature as well to work. Would be nice to know how to get it working but all tests we done on litespeed with the script it could not do seek and such streaming features.

    Maybe requires some modification or something, no idea but we tried litespeed for it and didnt work. Ill post the config here later and see what was needed.
  4. NiteWave

    NiteWave Administrator

    the simplest way is to use jwplayer, and test with following code:
    Code:
    <embed
          flashvars="file=yourvideo.mp4&provider=http&http.startparam=start"
          id="player2" name="player2"
          width="320" height="240"
          src="player.swf"
          allowfullscreen="true"
          allowscriptaccess="always"
          wmode="transparent"
    />
    player.swf is jwplayer. above code is to test .mp4 for lsws 4.1.
    to test .flv, just change yourvideo.mp4 to yourvideo.flv

    the video stream as well random seek, will be working.
    Last edited: May 15, 2011

Share This Page