way to have many links forward to same image... Basically .htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxweekxx
    Confirmed User
    • Oct 2002
    • 6780

    #1

    way to have many links forward to same image... Basically .htaccess question

    OK lets say i want to do this:

    Everytime anyone hits this:

    www.mydomain.com/images1/0093939.jpg
    www.mydomain.com/images1/0344093939.jpg
    www.mydomain.com/images1/0032293939.jpg
    www.mydomain.com/images1/004393939.jpg
    www.mydomain.com/images1/0022293939.jpg

    Basically images1/RANDOMIMAGE.jpg it will redirect to one specific image?

    Basically can i use .htaccess to redirect all bad image requests on images1/ to a specific image.

    Please let me know..

    Thanks
    _________________
    I am the best
  • seeandsee
    Check SIG!
    • Mar 2006
    • 50945

    #2
    i think that is easy :D
    BUY MY SIG - 50$/Year

    Contact here

    Comment

    • xxweekxx
      Confirmed User
      • Oct 2002
      • 6780

      #3
      well i also want to be able to use img scr

      so i can do img src for a non exisiting image and itll automatically load the image i specify.. make sense??

      Well if its easy lemme know bro
      _________________
      I am the best

      Comment

      • BestXXXPorn
        Confirmed User
        • Jun 2009
        • 2277

        #4
        Maybe something like:

        RewriteEngine On
        RewriteRule ^/images1/(.*)$ /path/to/newImage.jpg

        Untested but that's the general idea...
        ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

        Comment

        • BestXXXPorn
          Confirmed User
          • Jun 2009
          • 2277

          #5
          Not sure what you mean about the img src thing...

          EDIT: (I reread it, that should work for what you want)
          ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

          Comment

          • xxweekxx
            Confirmed User
            • Oct 2002
            • 6780

            #6
            i tried the code on top it didnt work.. basically i want to be able to call images1/RANDOMCRAP.jpg
            images1/FUCKURMOM.jpg
            images1/ksngksdjksdjgksdjgkdsjgkdnksdg.jpg
            images1/929838349393.jpg

            and it will call one specific image..
            _________________
            I am the best

            Comment

            • BestXXXPorn
              Confirmed User
              • Jun 2009
              • 2277

              #7
              What I wrote isn't copy paste, it was off the top of my head but meant to put you on the right track...
              ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

              Comment

              • xxweekxx
                Confirmed User
                • Oct 2002
                • 6780

                #8
                can someone please post a working code..

                Hey thanks for the help so far
                _________________
                I am the best

                Comment

                • Fucksakes
                  Shit... Fuck! What the Hell?
                  • Dec 2003
                  • 7567

                  #9
                  <FilesMatch "\.(png|jpg|jpeg|gif|bmp)$">
                  ErrorDocument 404 "url or url of new image here."
                  </FilesMatch>

                  maybe this will help some

                  Comment

                  • xxweekxx
                    Confirmed User
                    • Oct 2002
                    • 6780

                    #10
                    but i want to use it for image1/ folder nly
                    _________________
                    I am the best

                    Comment

                    • xxweekxx
                      Confirmed User
                      • Oct 2002
                      • 6780

                      #11
                      anymore input?
                      _________________
                      I am the best

                      Comment

                      • xxweekxx
                        Confirmed User
                        • Oct 2002
                        • 6780

                        #12
                        nobody knows actually code for this??
                        _________________
                        I am the best

                        Comment

                        Working...