Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Conditional Redirects On A Windows Box



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:


changing to


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

Anyone know the answer - preferably with a 301?

Cheers all!


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

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

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.

Featured Threads

Hot Threads This Week

Hot Threads This Month