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. Web Development
  3. ASP.NET
  4. how to rewrite a path

how to rewrite a path

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
7 Posts 3 Posters 0 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.
  • R Offline
    R Offline
    Rmesh
    wrote on last edited by
    #1

    Hi all, Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event like this

    N E 2 Replies Last reply
    0
    • R Rmesh

      Hi all, Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event like this

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

      Rmesh wrote:

      Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event

      Write an HTTPModule that checks all incoming requests, and if it matches to your criteria, use HTTPContext.RewritePath() method to rewrite path. But I don't think that you can make URL's ex tensionless like what you need.


      My Website | Ask smart questions

      R 1 Reply Last reply
      0
      • R Rmesh

        Hi all, Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event like this

        E Offline
        E Offline
        Ed Poore
        wrote on last edited by
        #3

        Try Googling a bit, this[^] returned as the second result.

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

          Rmesh wrote:

          Hai in project how to rewrite the URl.ex http://localhost/wild/events.aspx?Action=Event to http://localhost/wild/events.aspx/Event

          Write an HTTPModule that checks all incoming requests, and if it matches to your criteria, use HTTPContext.RewritePath() method to rewrite path. But I don't think that you can make URL's ex tensionless like what you need.


          My Website | Ask smart questions

          R Offline
          R Offline
          Rmesh
          wrote on last edited by
          #4

          I have tried that one but the url was not rewritten

          N 1 Reply Last reply
          0
          • E Ed Poore

            Try Googling a bit, this[^] returned as the second result.

            R Offline
            R Offline
            Rmesh
            wrote on last edited by
            #5

            I am using .Net 1.1

            E 1 Reply Last reply
            0
            • R Rmesh

              I have tried that one but the url was not rewritten

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

              Rmesh wrote:

              I have tried that one but the url was not rewritten

              Could you explain how you did that ? How you came to know that URL was not rewritten ?


              My Website | Ask smart questions

              1 Reply Last reply
              0
              • R Rmesh

                I am using .Net 1.1

                E Offline
                E Offline
                Ed Poore
                wrote on last edited by
                #7

                How about: URLRewriter[^]

                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