.htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peacemaker
    Confirmed User
    • Feb 2002
    • 897

    #1

    .htaccess question

    hi,
    hopefuly someone can and will help me.
    following situation:


    user wants to download a movie from my site via a link:
    http://www.mydomain.com/movies/name_abc.avi

    name.avi does not exist in that folder
    but i want the user to download a movie called "name_abc.avi" anyway.
    in the /movies/ folder there is a .avi called "name_xyz.avi".

    and the user should download the "name_xyz.avi" but the name of the download should be "name_abc.avi"

    i hope you understand

    is it possible to make this with .htaccess?

    Thanks
    SEO since 2002 - Google Index Record: 32 minutes. - Selling SEO services and tools
  • BV
    wtf
    • Sep 2001
    • 10914

    #2
    i think i know of a way but you can not have the file "name_xyz.avi" in the directory

    involves configuring your server to set "name_abc.avi" as your 404

    what is this for, i'm curious

    Comment

    • Abbie Bueller
      Confirmed User
      • Jul 2003
      • 160

      #3
      ErrorDocument 404 /movies/name_abc.avi

      Put that in your .htaccess file. It will make any 404 in the same directory as .htaccess load the movie.

      The AbbieCash Porn Network. Join our affiliate program today.
      50% RevShare per sign up recurring. Billing processing by CC*Bill. [2257]
      RealDollSex | GamerChicks | ModelTexans | ModelRussians | HottieCams | AsianSoloGirls

      Comment

      • Peacemaker
        Confirmed User
        • Feb 2002
        • 897

        #4
        Originally posted by Abbie Bueller
        ErrorDocument 404 /movies/name_abc.avi

        Put that in your .htaccess file. It will make any 404 in the same directory as .htaccess load the movie.
        hmm. thats not what i want.
        SEO since 2002 - Google Index Record: 32 minutes. - Selling SEO services and tools

        Comment

        • Abbie Bueller
          Confirmed User
          • Jul 2003
          • 160

          #5
          Your instructions don't make any sense, then.

          The AbbieCash Porn Network. Join our affiliate program today.
          50% RevShare per sign up recurring. Billing processing by CC*Bill. [2257]
          RealDollSex | GamerChicks | ModelTexans | ModelRussians | HottieCams | AsianSoloGirls

          Comment

          • Abbie Bueller
            Confirmed User
            • Jul 2003
            • 160

            #6
            I think I've deciphered your request...

            1. user wants to download http://www.mydomain.com/movies/name_abc.avi

            2. name.avi does not exist in that folder (abbie: name.avi? what about name_abc.avi?)

            3. i want the user to download a movie called "name_abc.avi" anyway (abbie: wtf?)

            4. in the /movies/ folder there is an .avi called "name_xyz.avi"

            5. user should download the "name_xyz.avi" but the name of the download should be "name_abc.avi"

            If you're using unix go into the folder and type this:
            ln -s name_xyz.avi name_abc.avi

            That makes a symbolic link (abc) to your real file (xyz). No .htaccess necessary.

            The AbbieCash Porn Network. Join our affiliate program today.
            50% RevShare per sign up recurring. Billing processing by CC*Bill. [2257]
            RealDollSex | GamerChicks | ModelTexans | ModelRussians | HottieCams | AsianSoloGirls

            Comment

            • woj
              <&(©¿©)&>
              • Jul 2002
              • 47882

              #7
              sounds like you need mod_rewrite, if you need help setting it up, icq: 33375924
              Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
              Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
              Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

              Comment

              Working...