htaccess gurus...check this out!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sortie
    Confirmed User
    • Mar 2007
    • 7771

    #1

    htaccess gurus...check this out!!!

    Lets say you have an image at

    domain.com/images/hello.jpg

    Now you put a htaccess redirect in the domain.com/images folder pointing to :

    domain.com/deleted/sorry.jpg


    To me this means that when a surfer tries to load hello.jpg they end up
    getting "sorry.jpg".

    No problem right?


    Well what do you think of this quote from a server tech :

    The code you are using is likely not going to work right, since you are redirecting them to another image on the same domain, that's going to create an endless loop as it tries to redirect.

    So the poll question is :

    What would you do upon reading that information.
    17
    Never redirect any file to a differrent file that domain
    0%
    1
    Shoot yourself in the head because you didn't think of that
    0%
    1
    Laugh like fucking shit!!!
    0%
    15
    Beg for forgiveness
    0%
    0
  • Angry Jew Cat - Banned for Life
    (felis madjewicus)
    • Jul 2006
    • 20368

    #2
    Why is "test it and see for myself" not an answer? Would take all of what 2 minutes?

    Comment

    • Altheon
      Confirmed User
      • May 2004
      • 506

      #3
      Looks like it would redirect and if the file sorry.jpg isn't in the deleted directory then you'd get a 404. I don't see a loop problem. Of course the 1 one way to take down your site is to mess up the .htaccess.

      Comment

      • sortie
        Confirmed User
        • Mar 2007
        • 7771

        #4
        Originally posted by Angry Jew Cat
        Why is "test it and see for myself" not an answer? Would take all of what 2 minutes?
        I already know the answer, it's a poll to see what you know and what you would have
        done upon hearing that quote above.


        thanks for playng.

        Comment

        • sortie
          Confirmed User
          • Mar 2007
          • 7771

          #5
          Hint : if you choose answer number 1 in the poll then you are a dumbass.

          Comment

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

            #6
            It's possible that the tech is actually right, can't tell for sure without seeing exactly what code you are using... but why are you asking your host for opinion on this anyway?
            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

            • sortie
              Confirmed User
              • Mar 2007
              • 7771

              #7
              Originally posted by woj
              It's possible that the tech is actually right, can't tell for sure without seeing exactly what code you are using... but why are you asking your host for opinion on this anyway?
              I didn't ask them that, the email just came from another question.

              Dude, don't think too hard on this. You need to redirect on the same domain just
              to have a 404 page. That's not a loop. Everybody would be in a fucking loop if
              that were true.

              If it were a loop then my server would be in a billion loops by now since that code
              is running this very second for the last 5 years on the server!

              It's only a loop if you redirect to the same exact file;
              or redirect to the same directory while redirecting every request to that directory.

              I can't even believe I'm explaining this.

              You redirect on your own domain all the time!!!

              Comment

              • baddog
                So Fucking Banned
                • Apr 2001
                • 107089

                #8
                Never mind . . . just read again.
                Last edited by baddog; 12-29-2008, 07:24 PM.

                Comment

                • sortie
                  Confirmed User
                  • Mar 2007
                  • 7771

                  #9
                  Originally posted by baddog
                  Never mind . . . just read again.
                  Yeah, you'd never tell a client that crap I'm sure.


                  BTW: The person who said that is the same one who said my tube script was a problem.


                  I'm getting a refund though.

                  Comment

                  • fris
                    Too lazy to set a custom title
                    • Aug 2002
                    • 55679

                    #10
                    most host techs are pretty dumb
                    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                    Comment

                    • sortie
                      Confirmed User
                      • Mar 2007
                      • 7771

                      #11
                      Originally posted by fris
                      most host techs are pretty dumb
                      No, I never heard anything this fucking stupid from any tech except this one.

                      Comment

                      • BigRod
                        Confirmed User
                        • Apr 2005
                        • 3685

                        #12
                        Without redirects my SEO world would fall apart.
                        Rod Macdonald
                        Mainstream Ad Agency Owner
                        ICQ: 607306

                        Comment

                        • spacedog
                          Yes that IS me. Bitch.
                          • Nov 2001
                          • 14149

                          #13
                          server tech is an idiot.

                          Comment

                          • DirtyDanza
                            Confirmed User
                            • Aug 2002
                            • 8375

                            #14
                            and to think... he has his hand hovering over your little red button right now....

                            let me recommend a great hosting company for you...

                            check my sig
                            Danza Bucks is back!!!

                            Comment

                            • sortie
                              Confirmed User
                              • Mar 2007
                              • 7771

                              #15
                              Originally posted by spacedog
                              server tech is an idiot.
                              A powerful idiot though.

                              He convinced me to give up on selling my tube script.
                              I mean, people wanted to host with them because of the low price.
                              That was the only reason I got an account there to begin with.
                              I decided that trying to undo the bullshit he'd tell clients was costing me
                              more support hours than the money was worth.

                              It was like Bush and Colin Powell and Powell just gave the fuck up!

                              Comment

                              • sortie
                                Confirmed User
                                • Mar 2007
                                • 7771

                                #16
                                Originally posted by DirtyDanza
                                and to think... he has his hand hovering over your little red button right now....

                                let me recommend a great hosting company for you...

                                check my sig
                                Thanks.

                                I still have my original host though.

                                I pay 3 times more for less than 1/3 the bandwidth and only 1/12 the storage and
                                it's worth every damn cent to pay it.

                                Super cheap hosting is like begging to fail.

                                But hey man, so many "bros" were bragging about it so I had to try it.

                                Ya never know when someone might rise to actually deliver the service for these rediculously low prices.
                                So far, I have yet to see that happen though.

                                If it's too good to be true......
                                Last edited by sortie; 12-30-2008, 05:54 AM.

                                Comment

                                • tranza
                                  ICQ: 197-556-237
                                  • Jun 2003
                                  • 57559

                                  #17
                                  Voted, but it's secret!
                                  I'm just a newbie.

                                  Comment

                                  • sortie
                                    Confirmed User
                                    • Mar 2007
                                    • 7771

                                    #18
                                    Originally posted by tranza
                                    Voted, but it's secret!

                                    Comment

                                    • Superterrorizer
                                      Confirmed User
                                      • Sep 2003
                                      • 509

                                      #19
                                      I presume by "htaccess guru" you mean "mod_rewrite guru", but I can't tell becuase you have neither posted anything that would go in an .htaccess file, nor have you posted anything related to mod_rewrite.

                                      And what exactly do you mean by "htaccess redirect"? I can think of a number of ways to redirect something, but we can't make the same interpretation the tech did without SEEING what he saw and it is pretty trivial to create an endless loop with mod_rewrite. So let's see the code, and we'll judge for ourselves.

                                      I do realize this thread is a hosting troll, but if you are going to do a hosting troll at least do it right. Show us the code and let all the "htaccess gurus" meditate on it. All this thread has done so far is make you look ignorant.

                                      Comment

                                      • sortie
                                        Confirmed User
                                        • Mar 2007
                                        • 7771

                                        #20
                                        Originally posted by Superterrorizer
                                        I presume by "htaccess guru" you mean "mod_rewrite guru", but I can't tell becuase you have neither posted anything that would go in an .htaccess file, nor have you posted anything related to mod_rewrite.

                                        And what exactly do you mean by "htaccess redirect"? I can think of a number of ways to redirect something, but we can't make the same interpretation the tech did without SEEING what he saw and it is pretty trivial to create an endless loop with mod_rewrite. So let's see the code, and we'll judge for ourselves.

                                        I do realize this thread is a hosting troll, but if you are going to do a hosting troll at least do it right. Show us the code and let all the "htaccess gurus" meditate on it. All this thread has done so far is make you look ignorant.


                                        In the domain.com/image folder in htaccess :

                                        AddHandler imagestuff .jpg
                                        Action imagestuff /cgi-bin/morph.cgi
                                        It's a redirect to a script that reads a file from another direcotry and prints that file as an image. The script does not redirect, it prints then exit();

                                        But that is somewhat irrelevent to what the tech said.

                                        Evaluating what the tech said alone is enough to throw your hands up without
                                        ever seeing any code.

                                        Take a look at the poll.

                                        Comment

                                        • CurrentlySober
                                          Too lazy to wipe my ass
                                          • Aug 2002
                                          • 38946

                                          #21
                                          I would have offered the server tech oral sex, swallowed him deep into my throat, and then sucked hard until he lost his CREAMY MESS down my throat....

                                          But you didnt put that in the poll


                                          👁️ 👍️ 💩

                                          Comment

                                          • sortie
                                            Confirmed User
                                            • Mar 2007
                                            • 7771

                                            #22
                                            Originally posted by ThatGuyInTheCorner
                                            I would have offered the server tech oral sex, swallowed him deep into my throat, and then sucked hard until he lost his CREAMY MESS down my throat....

                                            But you didnt put that in the poll
                                            There was no need to include my actual response in the poll.



                                            Gee, I must really want some laughs to have posted that.

                                            Comment

                                            • CurrentlySober
                                              Too lazy to wipe my ass
                                              • Aug 2002
                                              • 38946

                                              #23
                                              Sortie... U got ICQ?

































                                              (I want to offer you oral sex...)

                                              J/K
                                              Last edited by CurrentlySober; 12-30-2008, 10:59 AM. Reason: To offer Sortie Oral Sex... :)


                                              👁️ 👍️ 💩

                                              Comment

                                              • CurrentlySober
                                                Too lazy to wipe my ass
                                                • Aug 2002
                                                • 38946

                                                #24
                                                Sortie... To clarify....

                                                The joking part was the oral sex...

                                                The genuine part was the ICQ?


                                                👁️ 👍️ 💩

                                                Comment

                                                • sortie
                                                  Confirmed User
                                                  • Mar 2007
                                                  • 7771

                                                  #25
                                                  Originally posted by ThatGuyInTheCorner
                                                  Sortie... To clarify....

                                                  The joking part was the oral sex...

                                                  The genuine part was the ICQ?

                                                  ICQ : econfirmpro

                                                  I'm still looking for the actual number.

                                                  Comment

                                                  • seeandsee
                                                    Check SIG!
                                                    • Mar 2006
                                                    • 50945

                                                    #26
                                                    who got beer?
                                                    BUY MY SIG - 50$/Year

                                                    Contact here

                                                    Comment

                                                    • sortie
                                                      Confirmed User
                                                      • Mar 2007
                                                      • 7771

                                                      #27
                                                      Originally posted by seeandsee
                                                      who got beer?
                                                      Only correct answers in the poll can have beer.

                                                      Did you vote yet?

                                                      Comment

                                                      • CurrentlySober
                                                        Too lazy to wipe my ass
                                                        • Aug 2002
                                                        • 38946

                                                        #28
                                                        Hey Sortie. Sorry about the ICQ thing... I think you tried to hit me up today, but having forgotten about making the post, I just rejected them...

                                                        Not to worry though... I just wanted to ask you a question about something, but that question has already been answered by you on this board...

                                                        So why am I typing this? Just to say that if it was you, sorry for rejecting the ICQ, cause Im not an ignorant cunt... But what I was going to ask yah 'off board' has already been answered 'on board'

                                                        Happy new year !


                                                        👁️ 👍️ 💩

                                                        Comment

                                                        • fris
                                                          Too lazy to set a custom title
                                                          • Aug 2002
                                                          • 55679

                                                          #29
                                                          lol at .cgi
                                                          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                                          Comment

                                                          • sortie
                                                            Confirmed User
                                                            • Mar 2007
                                                            • 7771

                                                            #30
                                                            Originally posted by fris
                                                            lol at .cgi
                                                            It's actually much funnier than you believe.

                                                            Comment

                                                            • sortie
                                                              Confirmed User
                                                              • Mar 2007
                                                              • 7771

                                                              #31
                                                              Originally posted by ThatGuyInTheCorner
                                                              Hey Sortie. Sorry about the ICQ thing... I think you tried to hit me up today, but having forgotten about making the post, I just rejected them...

                                                              Not to worry though... I just wanted to ask you a question about something, but that question has already been answered by you on this board...

                                                              So why am I typing this? Just to say that if it was you, sorry for rejecting the ICQ, cause Im not an ignorant cunt... But what I was going to ask yah 'off board' has already been answered 'on board'

                                                              Happy new year !
                                                              I didn't hit you up because I didn't know your ICQ.

                                                              No problem.

                                                              Sorry about the way I answered your question.

                                                              Comment

                                                              Working...