homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

How to Rewrite on IIS server with Shared hosting
Is this possible?

 9:17 pm on Jan 15, 2007 (gmt 0)

I origionaly posted this in the newbie section but no one seems to be able to help me there.

I would like to start using something similiar to MOD_rewrite for my website. I plan to have up to 10,000 dynamically created pages. My data is stored in a SQL server database and I am using classic ASP and VBscript.

I need to get rid of the query string from url's. i.e.

MY problem is that I am hosted on a shared web server at Network Solutions. ( the only host I could find that allows remote access to their SQL Server) I have access to the cgi bin and a folder called /htdocs/ where my root is. Is this enough?

I understand that there are programs such as isapi_rewrite [isapirewrite.com...] which can do this for an IIS web server.

Does anyone know how or if it's possible to rewrite a url query string if I'm not using a dedicated hosting?

Thank you in advance any help would be appreciated.

[edited by: encyclo at 9:20 pm (utc) on Jan. 15, 2007]
[edit reason] switched to example.com [/edit]



 9:52 pm on Jan 15, 2007 (gmt 0)

I am not sure if it's that implementation or one of the competitors, but you can certainly set it up for a shared hosting environment.

In the instance I'm thinking of, you can either include rules for different sites in the same .ini file or make copies of the .ini file for each site.


 9:57 pm on Jan 15, 2007 (gmt 0)

Well thank you for trying to help but I don't think you understand. I don't have access to the webserver. It's belongs to network Solutions. My website is being hosted on a shared hosting enviroment and I only have access to my site through (http://www.networksolutions.com) thier control panel.

So Where do I place the ini files?


 10:03 pm on Jan 15, 2007 (gmt 0)

I understood completely. You asked if a solution was possible- and I answered that it most definitely is. Whether or not NS is willing to implement the given solution is a completely different question.

You'll have to have them install the software (if they are willing). They can put the .ini files anywhere they want.


 4:22 am on Jan 16, 2007 (gmt 0)

hello aish,

at the moment iam on a hunt for a win hosting company that will allow me to accomplish the same thing you are after (rewrite urls on a shared environment). this is certainly most possible but the problem is finding a "good" host which provides the functionality on a shared server. i find those hosts listed on isapirewrite's site not up to par with my requirements, and the hosts that i know of and can classify as "good" (in most things) just do not support the feature.

if you are not too picky, visit the page i mentioned above and you'll find about a dozen host listed there.

or sticky me if you want to us cooperate in hunting ;)


 1:44 pm on Jan 16, 2007 (gmt 0)


I've spent so much time searching for a reliable, cheap web hosting company I don't know how much more effort I can put in. I found Network Solutions and I chose it because they allow remote access to their SQL server and over 100 GB of Bandwidth for under $160 a year. GoDaddy's prices are the same but thier sql server stinks(no remote access only through their control panel) They are both really big and therefore cheap and I am willing to sacrifice personal service for a enviroment that is stable, and a control panel that is always up.

Do you know any other hosting companies who offer remote access to SQL server and at least 100 GB of Bandwidth for under $160 a year? I could only find Network Solutions.


 1:49 pm on Jan 16, 2007 (gmt 0)

Do you know any other hosting companies who offer remote access to SQL server and at least 100 GB of Bandwidth for under $160 a year?

Unfortunately you are going to get what you pay for. My advice would be to find a quality host who can provide you with the tools you need to effectively manage your website(s).


 12:19 am on Jan 17, 2007 (gmt 0)

At this point in time, you'd expect components such as isapi rewrite (and the like) to be "a must" already (or comes highly recommended at the very least) for Windows hosting servers. I don't understand the reluctance of most hosting outfits to accomodate the feature.

Sure you can do url rewriting natively with .NET or do url rewriting in classic ASP via a 404 hack. But you can also do email natively using CDO and yet almost every other Win host and his cousin provides support for a third party email component (ASPEmail, ASPMail etc). Why the different treatment in this case?


 12:31 am on Jan 17, 2007 (gmt 0)

I don't understand the reluctance of most hosting outfits to accomodate the feature.

I've found it to be a lack of knowledge when it comes to URI rewriting. Way back when, rewriting was a pipe dream for us Windows folks. Then along came ISAPI_Rewrite which is the equivalent of mod_rewrite for Apache.

Many hosts also don't want to deal with after the fact support. You have to admit, using an ISAPI filter is best left to a professional and I'm going to guess that there are very few around who can master the intricacies of URI rewriting in a Windows environment.


 12:47 am on Jan 17, 2007 (gmt 0)

... it comes to URI rewriting.

:) you got me there pageon ... force of habit ;)


 9:13 pm on Jan 18, 2007 (gmt 0)

You can rewrite URIs quite easily in the global.asax file in your project.

Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)

'obtain the old URI
Dim strOldPath As String = System.Web.Incoming.Request.Path

'change it to something else
strNewPath = Regex.Replace(strOldPath, ".aspx", ".html")

End Sub

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved