473,400 Members | 2,145 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,400 software developers and data experts.

Custom 404.asp url Rewrite without ID

Hi all,

My site is developing with lovely classic asp. i have question. It is possible to use 404.asp custom error rewrite page without ID?

www.example.com/gallery/folderview.asp?=temple to...
www.site.com/gallery/temple

For paging more than 10 record:
www.site.com/gallery/temple/01.htm, 02.htm, 03.htm

thank for help
Jun 5 '11 #1
2 3166
I think without ID is not possible, It needs some uniqueness which may be ID aur title

www.site.com/gallery/temple/01.htm

OR

http://www.site.com/gallery/temple/m...-this-page.htm

Using 404.asp is possible. heliconsoft's url rewriting tool will be more beneficial.
Jun 13 '11 #2
It is possible! I'm using it for years. Declare your Default.asp as your 404-site!
in the beginning of your default.asp you can analyze your query string. If it begins with:
404;http://yourDomain.de.de:80,
you can include the new content.
for example: http://www.myDomain.de/thisfolderdoesnotexists

with your 404 rule, it goes to the default.asp where i recognize, that it is an unknown folder.

i exprimented a lot of time, since i finally found this solution.
you may use this code, if you will make a credit-link to my website (www.multinett.de)
thank you!


Expand|Select|Wrap|Line Numbers
  1. 'ASP _REDIRECT BY MICHAEL KOTHE, (C) 2002 michael kothe www.multinett.de
  2. if instr(request.queryString,"404;")=1 then
  3.     sTmp=request.QueryString
  4.     myFolder=mid(sTmp,instrRev(sTmp,"/")+1)
  5.     select case MyFolder
  6.         case "contact"
  7.                %><!-- #include file="kontakt.htm" --!> <%
  8.        case  "greatsite"
  9.                server.transfer "greatsite.asp" 
  10.        end select
  11. end if
  12.  
you see, you have a lot of variations, what to do with 404! So - you can search in your database for the foldername.
Sep 23 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: P | last post by:
Hello, I need to use events in MIDP2.0, where EventObject class does not exist. I have built a custom event WITHOUT using EventObject (see code below: //Initially //Final) and, apparently, it has...
0
by: Ron | last post by:
I've an aspx page with a custom (composite) server control and a TextBox, both with RequiredFieldValidators. I'd like the custom control to behave the same way the default TextBox does when one...
1
by: Mark Goldin | last post by:
Here is a problem I have. I am modifying my composite control during a day many times. After every modification I have to remove the control from the form, remove reference to a dll and place...
6
by: Nick Horrocks | last post by:
I have set up a custom error page for 404 errors. However the HTTP status code returned is 302 followed by 200, this causes search engines not to remove old pages from their index. How can I...
3
by: Fred | last post by:
Hi, I want to be able to read and write to the custom properties of any Office type file. In Windows explorer I can do this manually by right clicking on a file selecting 'properties' from the...
7
by: Rudi Hausmann | last post by:
Hi, I want to implement my own "primitive" Authentication. I use following code in web.config: <authentication mode="Forms"> <forms name="FwLoginCookie" loginUrl="Login.aspx"...
3
by: misaw | last post by:
i know its not good practice but a client requirement... in our web application we want to prevent back and refresh functionality ... we use custom window without any menu, address bar links etc......
5
by: Rick | last post by:
I'm moving Access2000/2003 apps into Access2007 running on XPpro Dells. I've found where to lower the macro security and with a tweak to references have allowed me to use my custom toolbars...
16
hsriat
by: hsriat | last post by:
IDs in the database are saved in the form of abc_001, abc_002 or they may be abc_asd, abc_a12 I run a code to check the highest numerical suffix of the ids. in the above case, it would return 3....
4
by: =?Utf-8?B?bmVlcmFqYkBub2lkYS5ub3NwYW1oY2x0ZWNoLmNv | last post by:
Hi, I have a question with respect to the security implementation of Menu using sitemap. Normally in the sitemap we can implement role based security but that is based on the Role based...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.