| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Conditional Redirects On A Windows Box|
| 11:20 am on Nov 17, 2010 (gmt 0)|
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.
i.e. where french123 may be fenetre and english123 may be window
Anyone know the answer - preferably with a 301?
| 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.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved