473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

hide the file extension

Sometimes I have seen the URL doesn't have the file extension, like the
following:
http://server/signup?id=1001

rather than
http://server/signup.asp?id=1001

anyone knows how to do that? please advise. thanks!
Jul 19 '05 #1
6 3964
A custom 404 handler, perhaps. Also, if signup is a folder and default.asp
accepts an id parameter, you can type that in and get to the page correctly,
though the browser will inject the missing / as it renders the page. This
behavior may differ between browsers.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Matt" <ma*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Sometimes I have seen the URL doesn't have the file extension, like the
following:
http://server/signup?id=1001

rather than
http://server/signup.asp?id=1001

anyone knows how to do that? please advise. thanks!

Jul 19 '05 #2
Aaron [SQL Server MVP] wrote on 05 jul 2004 in
microsoft.public.inetserver.asp.general:
A custom 404 handler, perhaps.
could be, but more probable and less server unfriendly is this:
Also, if signup is a folder and
default.asp accepts an id parameter, you can type that in and get to
the page correctly, though the browser will inject the missing / as it
renders the page. This behavior may differ between browsers.


accepting

http://www.myserver.com/blah?value=123

for

http://wwwmy.server.com/blah/index.asp?value=123

is a server thing IMHO, and not browser dependent.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3
> http://wwwmy.server.com/blah/index.asp?value=123

is a server thing IMHO, and not browser dependent.


What I meant was, whether you actually see the / injected, not whether the
page works at all.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #4
I don't think this is 404 custom handler.

What I meant is something like: http://finance.yahoo.com/q?s=MSFT

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:Om**************@TK2MSFTNGP09.phx.gbl...
A custom 404 handler, perhaps. Also, if signup is a folder and default.asp accepts an id parameter, you can type that in and get to the page correctly, though the browser will inject the missing / as it renders the page. This
behavior may differ between browsers.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Matt" <ma*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Sometimes I have seen the URL doesn't have the file extension, like the
following:
http://server/signup?id=1001

rather than
http://server/signup.asp?id=1001

anyone knows how to do that? please advise. thanks!


Jul 19 '05 #5
>I don't think this is 404 custom handler.

What I meant is something like: http://finance.yahoo.com/q?s=MSFT


Why can't that be a custom 404 handler? I'm not stating that it IS, but it
certainly could be. SOMETHING is stepping in and determining how to process
a file with no extension... if you have any other ideas, please share
them...

A
Jul 19 '05 #6
Another possibility is ISAPI filter/extension. Of course, this is beyond
the scope of ASP...

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Matt" <ma*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Sometimes I have seen the URL doesn't have the file extension, like the
following:
http://server/signup?id=1001

rather than
http://server/signup.asp?id=1001

anyone knows how to do that? please advise. thanks!

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Els | last post by:
If I use <? include "file.html"; ?> in the html of my document, do I _have_ to change the extension of that document to .php, or would it still work and be valid if I let it remain .html? --...
1
by: knutsample | last post by:
Hello! I'm trying to associate a file extension to my wxPython script so that all I have to do is double click on the file and my python script will load up with the path of that file. For...
1
by: john | last post by:
I have an exe console app that i wrote, which works on custom data files. I'd like to give these data files a custom extension and somehow register that file extension with my exe, so all i have to...
3
by: David | last post by:
Should you be able to map a any file extension to the ASP.NET dll and have it execute ASP.NET script, just like an .aspx page, when it is requested by a browser. If not, why bother giving us the...
5
by: Winston | last post by:
Hi Group, in my aspx page there is an Response.Redirect to a file called myfile.csv. The file consists of plain text with comma separated values. I want that the browser opens the save as dialog...
1
by: Erik Cruz | last post by:
Hi. My application has a page where users can click on some links to download documents. When testing the page I noticed an strange behaviour. One of the links points to a .pps file. When I...
13
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
1
by: Just D. | last post by:
All, Who knows how can we make the IE open the file with some non-standard extension? I have a new file type, say .MOX, I corrected the association on my computer for this file extension,...
2
by: dazzler | last post by:
I need to open PDF file with my python application, and I'm using os.startfile(filename.pdf) command, I would need open command act 100% like clicking the file in the windows explorer python...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.