Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: ocean10000
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]
So Where do I place the ini files?
You'll have to have them install the software (if they are willing). They can put the .ini files anywhere they want.
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 ;)
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.
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).
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?
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.
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")