Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Pulling up a file without typing the htm ext.

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
IIS LOG FILE - Hi, I've found in my IIS log file some rows with cs-method = SEARCH , but i was unable to find out the meaning of this action Anyone could help me? thank you AC

IIS log file - Hi all, I want to track down whoever browse my web page and when and where. However, the log file from IIS can only track the IP address, and I use Nslookup and that only can tell me few site. Is ISA can do a better job or ?? any advice would be..

PPT file on IIS - I have a directory with username password login and users login through IIS all type of file are only the PPT files can not be open only the save is working for this type of file only. thanks @ yahoo.com

Log File Help - I am looking for a way to change the default name of the IIS log file. I am trying to create a scheduled event to go grab that file every day, and copy it, but since it never has the same name, I can't supply this event with the correct..

IISState log file - We have a Visual FoxPro COM DLL running under MTS. IISState was run while the mtx.exe process was consuming about 50% of the CPU. From the log file below, is it possible to determine what the process was doing? Thanks for your help. Opened log file..
Next:  how to secure mysql + php script on iis6  
Author Message
mike29

External


Since: Jul 06, 2004
Posts: 36



(Msg. 1) Posted: Fri Jul 30, 2004 11:39 am
Post subject: Pulling up a file without typing the htm ext.
Archived from groups: microsoft>public>inetserver>iis (more info?)

I am wanting to allow the ability for somone to find a file by typing the path/name in the address bar without having to add the extension .htm. For example, http://www.its.com/department should bring up the same as if they entered http://www.its.com/department.htm . What is the best way to handle? I already have on the Site>Documents the Default.htm and Default.asp. Thanks for the help

 >> Stay informed about: Pulling up a file without typing the htm ext. 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Fri Jul 30, 2004 5:05 pm
Post subject: Re: Pulling up a file without typing the htm ext. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mike" <Mike.TakeThisOut@discussions.microsoft.com> wrote in message
news:106A56E5-C3E1-4861-8B6F-999F02E7DA26@microsoft.com...
 > I am wanting to allow the ability for somone to find a file by typing the
path/name in the address bar without having to add the extension .htm. For
example, <a style='text-decoration: underline;' href="http://www.its.com/department" target="_blank">http://www.its.com/department</a> should bring up the same as if they
entered <a style='text-decoration: underline;' href="http://www.its.com/department.htm" target="_blank">http://www.its.com/department.htm</a> . What is the best way to handle?
I already have on the Site>Documents the Default.htm and Default.asp. Thanks
for the help


A bit of a kludge, but you could create a custom 404 error page that
redirects to the desired page. This has not been tested:

slash_pos = InStrRev(Request.ServerVariables("QUERY_STRING"),"/")
length = Len(Request.ServerVariables("QUERY_STRING"))
pagename = Right(Request.ServerVariables("QUERY_STRING"),length-slash_pos)
Response.Redirect pagename & ".htm"

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a>
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/" target="_blank">http://www.iisfaq.com/</a>
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://www.tryiis.com" target="_blank">http://www.tryiis.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Pulling up a file without typing the htm ext. 
Back to top
Login to vote
pvt

External


Since: Apr 30, 2004
Posts: 31



(Msg. 3) Posted: Fri Jul 30, 2004 8:41 pm
Post subject: Re: Pulling up a file without typing the htm ext. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You may want to ask Aaron (www.aspfaq.com) about this one as I believe he
knows how to do this.

--

Regards

Steven Burn
Ur I.T. Mate Group
<a style='text-decoration: underline;' href="http://www.it-mate.co.uk" target="_blank">www.it-mate.co.uk</a>

Keeping it FREE!


"Mike" <Mike.TakeThisOut@discussions.microsoft.com> wrote in message
news:106A56E5-C3E1-4861-8B6F-999F02E7DA26@microsoft.com...
 > I am wanting to allow the ability for somone to find a file by typing the
path/name in the address bar without having to add the extension .htm. For
example, <a style='text-decoration: underline;' href="http://www.its.com/department" target="_blank">http://www.its.com/department</a> should bring up the same as if they
entered <a style='text-decoration: underline;' href="http://www.its.com/department.htm" target="_blank">http://www.its.com/department.htm</a> . What is the best way to handle?
I already have on the Site>Documents the Default.htm and Default.asp. Thanks
for the help<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Pulling up a file without typing the htm ext. 
Back to top
Login to vote
pvt

External


Since: Apr 30, 2004
Posts: 31



(Msg. 4) Posted: Fri Jul 30, 2004 10:20 pm
Post subject: Re: Pulling up a file without typing the htm ext. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Could also combine it with FSO to allow checking whether or not the file
exists first;

slash_pos = InStrRev(Request.ServerVariables("QUERY_STRING"),"/")
length = Len(Request.ServerVariables("QUERY_STRING"))

Dim FSO
Set FSO = Server.Createobject("scripting.filesystemobject")
pagename = Right(Request.ServerVariables("QUERY_STRING"),length-slash_pos) &
".htm"

if fso.fileexists(Server.MapPath(pagename)) Then
Response.Redirect pagename
else
response.redirect "error.asp"
end if

set FSO = nothing

--

Regards

Steven Burn
Ur I.T. Mate Group
<a style='text-decoration: underline;' href="http://www.it-mate.co.uk" target="_blank">www.it-mate.co.uk</a>

Keeping it FREE!


"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:cee1v2$i8u18@kcweb01.netnews.att.com...
 > "Mike" <Mike.RemoveThis@discussions.microsoft.com> wrote in message
 > news:106A56E5-C3E1-4861-8B6F-999F02E7DA26@microsoft.com...
  > > I am wanting to allow the ability for somone to find a file by typing
the
 > path/name in the address bar without having to add the extension .htm. For
 > example, <a style='text-decoration: underline;' href="http://www.its.com/department" target="_blank">http://www.its.com/department</a> should bring up the same as if they
 > entered <a style='text-decoration: underline;' href="http://www.its.com/department.htm" target="_blank">http://www.its.com/department.htm</a> . What is the best way to
handle?
 > I already have on the Site>Documents the Default.htm and Default.asp.
Thanks
 > for the help
 >
 >
 > A bit of a kludge, but you could create a custom 404 error page that
 > redirects to the desired page. This has not been tested:
 >
 > slash_pos = InStrRev(Request.ServerVariables("QUERY_STRING"),"/")
 > length = Len(Request.ServerVariables("QUERY_STRING"))
 > pagename = Right(Request.ServerVariables("QUERY_STRING"),length-slash_pos)
 > Response.Redirect pagename & ".htm"
 >
 > --
 > Tom Kaminski IIS MVP
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running
IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Pulling up a file without typing the htm ext. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]