Results 1 to 6 of 6

Thread: Need help Urgent with php/.htaccess

  1. #1
    Join Date
    May 2007
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Post Need help Urgent with php/.htaccess

    can any of you webmaster out their can help me out, what i am trying to do is similar to this site if u execute this link

    http://www.namdinh.org/media/veoh/v17879275BB4QXFy3.flv
    http://www.namdinh.org/media/

    you are able to download the veoh video, i already have a veoh script running vh.php?id=v17879275BB4QXFy3 , when u excute the vh.php?id=v17879275BB4QXFy3 you be able to down the flv of the video. , the above script some how using the .ht-access to execute the files their execution is similar to mine but they used .ht-access to do twig the link so i am trying to do this with .ht-access rather then running veoh/vh.php?id=v17879275BB4QXFy3 i am trying to using .ht-access to manipulate the URL to do or run like this /veoh/v17879275BB4QXFy3.flv . so if any one out their can help out or have knowledge of this , your kindness will greatly be appreciated. thanks in advance.

    also just to mention that if u execute the file like this
    http://www.namdinh.org/media/veoh/.flv
    u get to be redirected to this
    http://www2.anhtrang.org/anhtrang.org_veoh.php?id=
    Last edited by dj30324; 09-20-2009 at 11:12 PM.

  2. #2
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    Code:
    RewriteEngine on
    RewriteRule ^veoh/([a-zA-Z0-9]{17})\.flv$ vh.php?id=$1

  3. #3
    Join Date
    May 2007
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Post

    thanks for trying but it doesn't work on any of my host from freehostia.com to 000webhost or powweb and yes all of them are .htaccess with with dedicated server. 100% and it doesn't work!!

  4. #4
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    You are placing this in the /media folder, correct? If you're not, that could be why it's not working.

  5. #5
    Join Date
    May 2007
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Post

    my-host.com/veoh/veoh2.php?id=v17879275BB4QXFy3


    this is how it will be executed and downloaded but with .htaccess
    i want to excute it like this
    http://myhost.net/veoh/v17879275BB4QXFy3.flv so i can get a download link i also sent u my website address just check your private msg.


    ps: i also put the .htaccess to either both mywebhost.com/.htaccess

    & also putted to mywebhost.com/veoh/.htaccess
    same result! doesnt work!
    Last edited by dj30324; 09-21-2009 at 08:40 PM.

  6. #6
    Join Date
    May 2007
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Post

    Thankz , Great Job!

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
  •