Go Back   SitePoint Forums > Forum Index > Program Your Site > .NET
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Apr 24, 2004, 07:45   #1
cfm
SitePoint Wizard
bronze trophy
 
Join Date: Apr 2003
Location: New Jersey
Posts: 4,250
Post ASP.NET Files, Sans-Extension

Hi all,

I'm using ASP.NET on IIS 6 on Windows Server 2003. I've read a few articles suggesting that it's best to reference URIs without extensions, to avoid linkrot. I know that this is feasible on Apache, but what about IIS?

Thanks in advance.



compuwhiz7
cfm is offline   Reply With Quote
Old Apr 24, 2004, 10:22   #2
jeffyjones
SitePoint Wizard
silver trophy
 
Join Date: Sep 2002
Location: Cleveland, Ohio, USA
Posts: 1,488
Yep, can do. In IIS you want the wildcard app map to go to the same DLL (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll) by clicking the configuration button in the home directory of the site's properties. That will send all requests to be handled by ASP.NET. From there, you'll have to interpret requests either in an HttpHandler with all requests mapped to it (via web.config) or in the BeginRequest event of the app (accessed via global.asax).

I do this on CampusFish, actually.
jeffyjones is offline   Reply With Quote
Old Apr 24, 2004, 10:42   #3
cfm
SitePoint Wizard
bronze trophy
 
Join Date: Apr 2003
Location: New Jersey
Posts: 4,250
Hmm... I'm on a shared server, so I can't access the IIS snap-in. I doubt that I can do this via CrystalTech's Web Control Center...

Thanks anyway, though.

cfm is offline   Reply With Quote
Old Apr 24, 2004, 14:46   #4
jeffyjones
SitePoint Wizard
silver trophy
 
Join Date: Sep 2002
Location: Cleveland, Ohio, USA
Posts: 1,488
Ask them... I bet they'd do it for you.
jeffyjones is offline   Reply With Quote
Old Apr 24, 2004, 15:05   #5
cfm
SitePoint Wizard
bronze trophy
 
Join Date: Apr 2003
Location: New Jersey
Posts: 4,250
Will do. I've had a positively sublime experience with their support team in the past, so I have high expectations.

Thanks for your help.

cfm is offline   Reply With Quote
Old Apr 26, 2004, 12:03   #6
cfm
SitePoint Wizard
bronze trophy
 
Join Date: Apr 2003
Location: New Jersey
Posts: 4,250
Well, I just got an e-mail back from the CrystalTech support team, and they don't offer catch-all mapping on shared servers. Oh, well.

Thanks for your help.
cfm is offline   Reply With Quote
Old Apr 26, 2004, 12:20   #7
Golgotha
runat="server"
 
Golgotha's Avatar
 
Join Date: Nov 2001
Location: Colorado
Posts: 2,143
jeffyjones I would love a detailed article on this...Would be great with step-by-step intructions on this, as I have to change all pages that have .asp extension to .aspx, would be better to just hide the extension all to together.
Golgotha is offline   Reply With Quote
Old Apr 26, 2004, 12:31   #8
M. Johansson
Wanna-be Apple nut
silver trophy
 
M. Johansson's Avatar
 
Join Date: Sep 2000
Location: Halmstad, Sweden
Posts: 7,614
They are an excellent support team, but they are very, very reluctant to make custom modifications to shared servers.
M. Johansson is offline   Reply With Quote
Old Apr 26, 2004, 12:35   #9
cfm
SitePoint Wizard
bronze trophy
 
Join Date: Apr 2003
Location: New Jersey
Posts: 4,250
It's a pity, too, because it's very easy and would benefit more than just myself.

Oh, well.

cfm is offline   Reply With Quote
Old May 2, 2004, 13:05   #10
Venix
SitePoint Zealot
 
Venix's Avatar
 
Join Date: Apr 2004
Posts: 180
Is this what you are looking for http://www.theukwebdesigncompany.com...y-urls-asp.php
Venix is offline   Reply With Quote
Old May 2, 2004, 13:29   #11
cfm
SitePoint Wizard
bronze trophy
 
Join Date: Apr 2003
Location: New Jersey
Posts: 4,250
Thanks for link, Venix... I'll be sure to check out that code.

cfm is offline   Reply With Quote
Old May 2, 2004, 15:23   #12
Venix
SitePoint Zealot
 
Venix's Avatar
 
Join Date: Apr 2004
Posts: 180
Np, this is something similar to what we are doing to our sites that are on a shared server.
Venix is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 07:29.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved