Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Funny Redirection

Funny Redirection

Scheduled Pinned Locked Moved The Weird and The Wonderful
com
8 Posts 5 Posters 37 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    N a v a n e e t h
    wrote on last edited by
    #1

    One ASPX page is not loading !!!!!! :mad: Everything looks fine except this function written on page load by my dear colleague.

    if(Request.Url.AbsoluteUri.StartsWith("http")
    {
    Response.Redirect(Request.Url.AbsoluteUri.Replace("http","https");
    }

    What a shame !!!!!!!! :mad:


    printf("Navaneeth!!") www.w3hearts.com

    P R 2 Replies Last reply
    0
    • N N a v a n e e t h

      One ASPX page is not loading !!!!!! :mad: Everything looks fine except this function written on page load by my dear colleague.

      if(Request.Url.AbsoluteUri.StartsWith("http")
      {
      Response.Redirect(Request.Url.AbsoluteUri.Replace("http","https");
      }

      What a shame !!!!!!!! :mad:


      printf("Navaneeth!!") www.w3hearts.com

      P Offline
      P Offline
      peterchen
      wrote on last edited by
      #2

      ouch!


      Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
      Linkify!|Fold With Us!

      1 Reply Last reply
      0
      • N N a v a n e e t h

        One ASPX page is not loading !!!!!! :mad: Everything looks fine except this function written on page load by my dear colleague.

        if(Request.Url.AbsoluteUri.StartsWith("http")
        {
        Response.Redirect(Request.Url.AbsoluteUri.Replace("http","https");
        }

        What a shame !!!!!!!! :mad:


        printf("Navaneeth!!") www.w3hearts.com

        R Offline
        R Offline
        Russell Jones
        wrote on last edited by
        #3

        i've made that mistake doing a search and replace before and ended up in a world of hurt Russell

        N 1 Reply Last reply
        0
        • R Russell Jones

          i've made that mistake doing a search and replace before and ended up in a world of hurt Russell

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Russell Jones wrote:

          i've made that mistake doing a search and replace before and ended up in a world of hurt

          Could you give some details?

          Regards, Nish


          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
          C++/CLI in Action (*E-Book is out, Print version April 6th*)

          D 1 Reply Last reply
          0
          • N Nish Nishant

            Russell Jones wrote:

            i've made that mistake doing a search and replace before and ended up in a world of hurt

            Could you give some details?

            Regards, Nish


            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
            C++/CLI in Action (*E-Book is out, Print version April 6th*)

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #5

            https://www.mysite.com will become httpss://www.mysite.com

            -- CleaKO The sad part about this instance is that none of the users ever said anything [about the problem]. Pete O`Hanlon Doesn't that just tell you everything you need to know about users?

            N N 2 Replies Last reply
            0
            • D Dan Neely

              https://www.mysite.com will become httpss://www.mysite.com

              -- CleaKO The sad part about this instance is that none of the users ever said anything [about the problem]. Pete O`Hanlon Doesn't that just tell you everything you need to know about users?

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              dan neely wrote:

              https://www.mysite.com will become httpss://www.mysite.com

              Then you'd just need to change the find string to "http:" - right?

              Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              C++/CLI in Action (*E-Book is out, Print version April 6th*)

              D 1 Reply Last reply
              0
              • N Nish Nishant

                dan neely wrote:

                https://www.mysite.com will become httpss://www.mysite.com

                Then you'd just need to change the find string to "http:" - right?

                Regards, Nish


                Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                C++/CLI in Action (*E-Book is out, Print version April 6th*)

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                unless there's more going on than I'm aware of.

                -- CleaKO The sad part about this instance is that none of the users ever said anything [about the problem]. Pete O`Hanlon Doesn't that just tell you everything you need to know about users?

                1 Reply Last reply
                0
                • D Dan Neely

                  https://www.mysite.com will become httpss://www.mysite.com

                  -- CleaKO The sad part about this instance is that none of the users ever said anything [about the problem]. Pete O`Hanlon Doesn't that just tell you everything you need to know about users?

                  N Offline
                  N Offline
                  N a v a n e e t h
                  wrote on last edited by
                  #8

                  dan neely wrote:

                  https://www.mysite.com will become httpss://www.mysite.com

                  Yes exactly, and more over site won't load. Because each time it will redirect to the same page


                  printf("Navaneeth!!") www.w3hearts.com

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups