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. HTTP Handler for folder

HTTP Handler for folder

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
4 Posts 2 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
    Shahzad Aslam
    wrote on last edited by
    #1

    Hi All, Can I write HTTP Handler for the folder which does not exist? for example if I write "http:/localhost/website/CompanyName" it should be redirected to the specific page.

    Thanks, Shahzad Aslam

    A 1 Reply Last reply
    0
    • S Shahzad Aslam

      Hi All, Can I write HTTP Handler for the folder which does not exist? for example if I write "http:/localhost/website/CompanyName" it should be redirected to the specific page.

      Thanks, Shahzad Aslam

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Hi, Please go through this link first :) http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx[^]

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        Hi, Please go through this link first :) http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx[^]

        S Offline
        S Offline
        Shahzad Aslam
        wrote on last edited by
        #3

        Thanks, I did it using modifying custom errors in IIS and edit 404 error, provide absulute URL. http://www.nerdymusings.com/LPMArticle.asp?ID=12[^]

        A 1 Reply Last reply
        0
        • S Shahzad Aslam

          Thanks, I did it using modifying custom errors in IIS and edit 404 error, provide absulute URL. http://www.nerdymusings.com/LPMArticle.asp?ID=12[^]

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Yes, that is the easiest way. And it will work if page not found. In your question you asked in different way, that you need to redirect if the url is like , so I thought you are looking for URL Rewrite :)

          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