Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Forced Download and Web Win Media Player

  1. #11
    Join Date
    Aug 2007
    Location
    Ohio
    Posts
    79
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Default

    First, I'd recommend using flash for your videos if you can. It's so widely supported that all the major video sharing sites like youtube and google videos use it.

    Anyways, I don't know why other browsers wouldn't like the dynamic php urls. If they truly are the root of the problem, you could try mod_rewrite to rewrite their urls into more browser friendly urls. For example, /my-video-4.wmv could redirect to /myvideo.php?id=4.

    If you're interested, here are a few links:
    mod_rewrite: A Beginner's Guide to URL Rewriting
    modrewrite.com
    URL Rewriting | redirecting URLs with Apache's mod_rewrite

    Here is a basic .htaccess file that should suit your needs (This is untested):

    .htaccess
    Code:
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^video-([0-9]+)\.wmv$ myscript.php?video=$1 [L,NC]

  2. #12
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Thanks, I'll try that. It seems time consuming (lots of rewriting), but it might be the only option.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •