OK I think I finally got it. I just thought I'd come back and let any future readers know how this should be done since I could find nothing about it. Its not exactly what I wanted but it works.
I'm just going to add seperate RewriteConds for each directory that has an index.asp or default.asp...
Thanks for the suggestion...
Yes, I did try it with SCRIPT_FILENAME and got the same result. It didn't see the "asp" in SCRIPT_FILENAME.
I tried to test the different variables in a SSI (shtml) file with the <!--#echo var="VARIABLE" -->. It shows the actual file name in...
I have Apache 2.0 installed on a WinNT4 box coexisting with IIS which I moved to port 81. Apache handles everything except for the ASPs. I used mod_rewrite to change and urls that contain "asp" to port 81 like this:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI}...
Well, I haven't fixed my problem yet but I did find a cool tutorial on mod_rewrite for any future mod_rewrite noobs reading this. Its not as through but a whole lot easier to understand than Apache's documentation and examples.
http://www.promotiondata.com/sections.php?op=viewarticle&artid=1
Background:
My ultimate goal is to have IIS serve ASPs and Apache serve everything else on a NT4 box. IIS listens on port 81 and Apache is on port 80 of the same IP.
I'm trying to use mod_rewrite in Apache to change to url to port 81 if it has ".asp" in it. I don't think I'm...
I am going to revive this old thread because I am having the same problem. I am trying to run an Oracle procedure from Access 2000 and keep getting the 'ODBC Call Failed' message.
Thanks UNIMENT,
That is definately better than nothing. I can use your suggestion for IE and use my old way for all other browsers. The script already detects the browser version anyways.
Another question for ya.
Did you look that up in the jscript documentation on microsoft's site? I'm lookin...
Right now, I have a script that loops through the links array and searches the href attribute of each link for a specific value. If it finds it, the href attribute for that link is changed to a javascript function call. I would much rather use the onClick event handler to call the function but I...
Thanks for the suggestion. Actually I agree with you that a button would be best but unfortunately our client is kinda stuck on the 'no button' thing. I really do appreciate your input though.
OK say I have a select box with a bunch of options in it. I have a javascript function that runs when the select is changed (onChange) and goes to another page.
Its all fine and good until you try to navigate the option box without a mouse. Now everytime you tab to the select box and try to...
I need to be able to click on a link and the script tell me (alert or something) what number that link is in the link array on the page without actually typing the onClick attribute in the HTML tag.
Actually the ultimate goal is every time someone clicks on a link, I want to search the href...
OK, I figured it out.
<%
Dim objFSO
Dim fFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set fFile = objFSO.GetFile("D:\somedir\somefile.ext")
Response.Write FormatDateTime(fFile.DateLastModified, 2)
%>
Is the nic integrated into the motherboard? I saw a few seperate drivers for integrated 3com nics on other sites. I would imagine that the drivers off of 3com's site would still work though.
I have a couple of asp pages that pull certain records from an access database. I need to put a dynamic "updated" date on the page so that people know when the information was last updated.
Is there a way to access the modified date for the database? Or maybe some way in Access to...
OK, this is my first shot at NT. I am tryin to install NT server and I thought I had it beat. I installed everything, removed the floppy and CD disks and booted up from the hard drive. For some reason, LILO was still in use (I thought that windows over wrote LILO?) anyways, I booted into dos and...
I wrote a script to detect what version of the acrobat reader a browser has. I want to use javascript but it does not work for Internet Explorer. The only way I've found to do it is with vbscript.
Does anyone know how to detect what version of acrobat reader is installed in IE with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.