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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. hide extention from the url

hide extention from the url

Scheduled Pinned Locked Moved ASP.NET
database
5 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.
  • S Offline
    S Offline
    sugunavathysubramanian
    wrote on last edited by
    #1

    I want to remove the file Extention from the URL. Like - in URL path is like that - http:\\localhost\project1\webform1.aspx Now I want it only show in the URL like - http:\\localhost\project\webform1 if form have Query string that it shows as it is but with out file extention(.aspx).

    N 1 Reply Last reply
    0
    • S sugunavathysubramanian

      I want to remove the file Extention from the URL. Like - in URL path is like that - http:\\localhost\project1\webform1.aspx Now I want it only show in the URL like - http:\\localhost\project\webform1 if form have Query string that it shows as it is but with out file extention(.aspx).

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

      Extension-less URL rewriting is not possible in IIS6.0. If you are using IIS7.0, you can do this.

      Navaneeth How to use google | Ask smart questions

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

        Extension-less URL rewriting is not possible in IIS6.0. If you are using IIS7.0, you can do this.

        Navaneeth How to use google | Ask smart questions

        S Offline
        S Offline
        sugunavathysubramanian
        wrote on last edited by
        #3

        i am using IIS7.0... can you give any example coding

        C N 2 Replies Last reply
        0
        • S sugunavathysubramanian

          i am using IIS7.0... can you give any example coding

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          In fact, you can do this with any version of IIS. What you need to do, is replace all your pages with folders, and then in each folder put a default.aspx. I explained this to someone here recently, although the whole thing seems retarded to me.

          Christian Graus Driven to the arms of OSX by Vista.

          1 Reply Last reply
          0
          • S sugunavathysubramanian

            i am using IIS7.0... can you give any example coding

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

            Here[^] you go

            Navaneeth How to use google | Ask smart questions

            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