homepage Welcome to WebmasterWorld Guest from 54.211.80.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Conditional Redirects On A Windows Box
GetVis




msg:4231366
 11:20 am on Nov 17, 2010 (gmt 0)

Hi Guys,

Does anyone know how to do a conditional redirect for a client running Microsoft-IIS/6.0 ?

i.e they've got some foriegn launguage variables being passed from their french site to the UK that I just can't flush out.

they need:

site.com/cat/filename.asp?variable1=ok&variable2=french123&variable3

changing to

site.com/cat/filename.asp?variable1=ok&variable2=english123&variable3

i.e. where french123 may be fenetre and english123 may be window

Anyone know the answer - preferably with a 301?

Cheers all!

 

Ocean10000




msg:4231462
 3:53 pm on Nov 17, 2010 (gmt 0)

Is variable2 a category name or something similar that has both a English and French name given?

If it is you can do a simple sql statement looking for the name in the french table if it is not found then no redirect is necessary.

But if it is found, match it to its equivalent in the English version of the table and then do a simple redirect. You can do this code in the Global.asa file so it applies for all classic asp code.

Yes I am ignoring Referrer's as a way to determine if it should be redirected, as it not always returned.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved