Here's a little more help on this issue:

 

IIS: set the 404 error handling in the Custom Errors tab to: URL: /main.taf
(or whatever is going to handle this)

 

At the top of main.taf use code something like this:

 

<@ASSIGN url <@CGIPARAM name=http_search_args>>

<@ASSIGN parsed_url <@TOKENIZE str=@@url chars=/?>>

<@ASSIGN parsed_url <@TRANSPOSE array=parsed_url>>

 

That will leave you with an array containing the information that was in the
original URL. The expectation is that you would have similarly named TAFs,
includes, or possibly a lookup in a database to know what to display back to
the user.

 

Probably the biggest problem you'll hit is that all requests are going to be
handled by main.taf (at least initially) so to add this to an existing
application you will need to do some branching as well.

 

If you can't determine exactly which page to display back to the user, you
must send back a properly formatted 404 error page.

 

Keep in mind that you need to be careful about this whole process. You can
create endless loops and possibly other problems if you don't have good
error checking.

 

I can attest that this will function under very high loads.

 

Robert

 

  _____  

From: Fogelson, Steve [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2008 11:42 PM
To: [email protected]
Subject: Witango-Talk: Keyword Relavant Links

 

You may recognize this subject. SEO's want links that contain keywords. 

 

IE: 

http://www.mackspw.com/SubCategory--Duck-Decoys--m-254

http://www.mackspw.com/Category--Hunting-Blinds--m-137

http://www.basspro.com/webapp/wcs/stores/servlet/SportingGoods_Men%2527s%2BC
lothing--Columbia--Shirts_10151_-1_10001_advisor_CA.CategoryExpand_N_6250060
01_625000000_625006000

 

Has anyone implemented a similar strategy using Witango 5.5 and Windows
2003? I want to utilize this in my shopping cart app which is presently
built utilizing the following example link structure:

 

http://www.upnorthsports.com/Category/main.taf?cat=2

http://www.upnorthsports.com/Product/product.taf?_function=detail
<http://www.upnorthsports.com/Product/product.taf?_function=detail&_ID=6092>
&_ID=6092

 

Thanks

 

Steve Fogelson

 



________________________________________________________________________

TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to