help with HTACCESS redirect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cam_girls
    So Fucking Banned
    • Apr 2009
    • 2968

    #1

    help with HTACCESS redirect

    I want to do something like this

    RedirectMatch 301 (.*)\.html$ http://www.example.com$1.php



    This is the URL people will click

    http://photosofclouds.com/clouds/GHOSTS_Buddha.png

    GOES TO

    http://photosofclouds.com/index.php?...reenwidth=1024

    http:/photosofclouds.com/index.php?showimage=GHOSTS_Buddha.png&screenwidth= 1024

    There's no real directory /clouds
    Last edited by cam_girls; 06-24-2011, 03:50 PM.
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    Google it

    Comment

    • TheDoc
      Too lazy to set a custom title
      • Jul 2001
      • 13827

      #3
      It's understandable that regular expression would trip you up after inventing some machine code thingy in a 6 inch wide jpg.
      ~TheDoc - ICQ7765825
      It's all disambiguation

      Comment

      • cam_girls
        So Fucking Banned
        • Apr 2009
        • 2968

        #4
        I read 10 sites from Google, and got this far


        RedirectMatch 301 (.*)\.html$ http://www.example.com$1.php


        not sure what the $ is after html and the 1 is for.


        I can go to alt.www.webmaster but they take a day or two not many gurus around

        Comment

        • Brujah
          Beer Money Baron
          • Jan 2001
          • 22157

          #5
          Redirect 301 .* http://www.clickmojo.com/

          Comment

          • cam_girls
            So Fucking Banned
            • Apr 2009
            • 2968

            #6
            Originally posted by TheDoc
            It's understandable that regular expression would trip you up after inventing some machine code thingy in a 6 inch wide jpg.

            You mean my 6th model of computation?





            I already know 1000X the average human being, I design regular expression parsers in my sleep, doesn't mean I want to RESEARCH and be a great hacker at everything

            Comment

            • AdultKing
              Raise Your Weapon
              • Jun 2003
              • 15601

              #7
              Fail

              8char

              Comment

              • cam_girls
                So Fucking Banned
                • Apr 2009
                • 2968

                #8
                if you can't fucking do it don't post

                CAPICHE?

                Someone with a brain reply with the line of code

                the rest of you can fuck off!

                Comment

                • cam_girls
                  So Fucking Banned
                  • Apr 2009
                  • 2968

                  #9
                  Originally posted by AdultKing
                  Fail

                  8char

                  There's 2 things wrong with your username

                  Comment

                  • Brujah
                    Beer Money Baron
                    • Jan 2001
                    • 22157

                    #10
                    lol we're laughing because anyone that knows regex knows what the $ is for

                    Comment

                    • TheDoc
                      Too lazy to set a custom title
                      • Jul 2001
                      • 13827

                      #11
                      Originally posted by cam_girls
                      You mean my 6th model of computation?





                      I already know 1000X the average human being, I design regular expression parsers in my sleep, doesn't mean I want to RESEARCH and be a great hacker at everything
                      Yes, that silly graphic that attempts to represent something far more advanced then a 6 inch jpeg could ever display.

                      Sure, the average human is dirt poor and has like a 3rd grade education, if they're lucky. So that isn't really much of a claim... maybe if you were a 1000x smarter than the guys at MIT, then that would be a claim worthy of something.

                      You design regular expression parsers? Hahahaha... and you don't know what a $ and numbers are, but you design them in your sleep?

                      Oh man... I'm laughing, glad nobody is around.
                      Last edited by TheDoc; 06-24-2011, 05:24 PM.
                      ~TheDoc - ICQ7765825
                      It's all disambiguation

                      Comment

                      • V_RocKs
                        Damn Right I Kiss Ass!
                        • Nov 2003
                        • 32449

                        #12
                        Code:
                        RewriteEngine On
                        RewriteRule ^clouds/(.+)$ index.php?showimage=$1&screenwidth=1024 [L]

                        Comment

                        • B.Barnato
                          So Fucking Banned
                          • Nov 2010
                          • 3618

                          #13
                          wait i got this


                          Code:
                          %$>/(&/(F45&356653$&77)(/&)(%&/$%§%&/()%($&§%(/)FZHJT/(&%/(//3:56!"§!"§%$§%6357/6§

                          Comment

                          • signupdamnit
                            Confirmed User
                            • Aug 2007
                            • 6697

                            #14
                            http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
                            http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

                            ^ To actually understand it.

                            You don't like my posts? Put me on ignore or fuck right off. I'll say what I want.

                            Comment

                            • Tempest
                              Too lazy to set a custom title
                              • May 2004
                              • 10217

                              #15
                              Anyone else see a server hack in his future?

                              Comment

                              • cam_girls
                                So Fucking Banned
                                • Apr 2009
                                • 2968

                                #16
                                Originally posted by V_RocKs
                                Code:
                                RewriteEngine On
                                RewriteRule ^clouds/(.+)$ index.php?showimage=$1&screenwidth=1024 [L]

                                That went to the right page

                                http://photosofclouds.com/clouds/GHOSTS_Buddha.png

                                but the image didn't display, so I'll have to hand code a shorter URL

                                OK thanks everyone!













                                UNCHOPPED those 2!

                                Comment

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

                                  #17
                                  Originally posted by V_RocKs
                                  Code:
                                  RewriteEngine On
                                  RewriteRule ^clouds/(.+)$ index.php?showimage=$1&screenwidth=1024 [L]
                                  please dont help him
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                  Comment

                                  • dynastoned
                                    mmm yeah!
                                    • Feb 2005
                                    • 5061

                                    #18
                                    Originally posted by cam_girls
                                    You mean my 6th model of computation?





                                    I already know 1000X the average human being, I design regular expression parsers in my sleep, doesn't mean I want to RESEARCH and be a great hacker at everything


                                    this entire thread is comedy.

                                    Comment

                                    • papill0n
                                      Unregistered Abuser
                                      • Oct 2007
                                      • 15547

                                      #19
                                      you fucking intellectual cripple

                                      Comment

                                      • cam_girls
                                        So Fucking Banned
                                        • Apr 2009
                                        • 2968

                                        #20
                                        oh for Pete's sake.

                                        what's with all the babies whining?

                                        Comment

                                        • Kafka
                                          Confirmed User
                                          • Oct 2002
                                          • 466

                                          #21
                                          Originally posted by cam_girls
                                          I read 10 sites from Google, and got this far


                                          RedirectMatch 301 (.*)\.html$ http://www.example.com$1.php


                                          not sure what the $ is after html and the 1 is for.
                                          $ means : ending with html , in this case any filename ending with .html
                                          $1 = (.*) you can substitute anything between the parentheses with $1 (variable).

                                          Comment

                                          • DWB
                                            Registered User
                                            • Jul 2003
                                            • 31779

                                            #22
                                            What in the hell is going on in this thread?

                                            Comment

                                            • NetHorse
                                              Confirmed User
                                              • Dec 2006
                                              • 3526

                                              #23
                                              Originally posted by DWB
                                              What in the hell is going on in this thread?
                                              A simple request by the OP, flaming by everyone else for not understanding basic redirects followed by a claim of being an intellectual genius by the OP.

                                              This thread rocks my fucking world.
                                              ┌∩┐(◣_◢)┌∩┐
                                              ICQ # 427013273

                                              Comment

                                              • seeandsee
                                                Check SIG!
                                                • Mar 2006
                                                • 50945

                                                #24
                                                just a sec. stupid question but i have to ask

                                                WHO THE FUCK MADE HTACCESS?!?
                                                BUY MY SIG - 50$/Year

                                                Contact here

                                                Comment

                                                • TheDoc
                                                  Too lazy to set a custom title
                                                  • Jul 2001
                                                  • 13827

                                                  #25
                                                  Originally posted by seeandsee
                                                  just a sec. stupid question but i have to ask

                                                  WHO THE FUCK MADE HTACCESS?!?
                                                  Apache I would assume.
                                                  ~TheDoc - ICQ7765825
                                                  It's all disambiguation

                                                  Comment

                                                  • seeandsee
                                                    Check SIG!
                                                    • Mar 2006
                                                    • 50945

                                                    #26
                                                    Originally posted by TheDoc
                                                    Apache I would assume.
                                                    there must be some complete documentation then about all stuff
                                                    BUY MY SIG - 50$/Year

                                                    Contact here

                                                    Comment

                                                    • NetHorse
                                                      Confirmed User
                                                      • Dec 2006
                                                      • 3526

                                                      #27
                                                      Originally posted by seeandsee
                                                      there must be some complete documentation then about all stuff
                                                      It was posted above.

                                                      ┌∩┐(◣_◢)┌∩┐
                                                      ICQ # 427013273

                                                      Comment

                                                      • misterhhs
                                                        Confirmed User
                                                        • Oct 2005
                                                        • 165

                                                        #28
                                                        I have a book with more than 100 pages on the apache module mod_rewrite.
                                                        Guess what ?

                                                        Comment

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

                                                          #29
                                                          TOP TIP !!! 4 Real!!!

                                                          just make something up, that looks kinda correct, then hit up your host and complain that its their fault it doesn't work... Threaten to make a big fuss on GFY saying that their servers are misconfigered, and lo and behold, they will write whatever .htaccses you need for you...


                                                          👁️ 👍️ 💩

                                                          Comment

                                                          • cam_girls
                                                            So Fucking Banned
                                                            • Apr 2009
                                                            • 2968

                                                            #30
                                                            I've posted half a dozen program codes for other people's requests in GFY

                                                            and I am a REAL Genius!


                                                            You can believe either of two people here!








                                                            GUSTY THE OGRE!

                                                            Comment

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

                                                              #31
                                                              ya real genius for sure.
                                                              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                                              Comment

                                                              • cam_girls
                                                                So Fucking Banned
                                                                • Apr 2009
                                                                • 2968

                                                                #32





                                                                OK last cloud pic...

                                                                Comment

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

                                                                  #33
                                                                  i feel sorry for whoever lives in that building, looks ghetto
                                                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                                                  Comment

                                                                  • PromoterX
                                                                    Confirmed User
                                                                    • Sep 2010
                                                                    • 949

                                                                    #34
                                                                    I'd help but someone once said... "Despite the tons of examples and docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo."

                                                                    Comment

                                                                    • AdultKing
                                                                      Raise Your Weapon
                                                                      • Jun 2003
                                                                      • 15601

                                                                      #35
                                                                      I'm guessing the cloud site is cam_girls new money making venture being put in place for when he defaults on his pawned domain and his domain is forfeit.

                                                                      Comment

                                                                      • cam_girls
                                                                        So Fucking Banned
                                                                        • Apr 2009
                                                                        • 2968

                                                                        #36
                                                                        Originally posted by fris
                                                                        i feel sorry for whoever lives in that building, looks ghetto

                                                                        Good enough for Buddha to have a lie down!


                                                                        Comment

                                                                        • martinsc
                                                                          Too lazy to set a custom title
                                                                          • Jun 2005
                                                                          • 27047

                                                                          #37
                                                                          Make Money

                                                                          Comment

                                                                          Working...