11-18-2015 08:00 PM - edited 07-05-2021 04:16 AM
Thanks !
11-18-2015 10:33 PM
HI,
Yes, You can do that from:
What i need is different redirection pages for each ssid.
like Clients who are being authenticated with SSID A should be redirected to google.com.hk
Clients who are being authenticated with SSID C should be redirected to google.co.jp
1. You can do that from under WLAN cofnig -> Security -> Layer 3. for external servers only. not for the internal page.
It can only be used for external servers but cannot be used for the internal server authentication.
2. you can do a per WLAN redirect, but you have to do custome pages for each WLAN. You can specify the redirect URL in the HTML configuration.
For each ssid you have a diff custom webauth file right..?
then modified like this:
Use google.com.hk for SSID A and use google.co.jp for SSID C.
if(urlStr.length > 0){
redirectUrl += urlStr;
if(redirectUrl.length > 255)
redirectUrl = redirectUrl.substring(0,255);
document.forms[0].redirect_url.value = redirectUrl;
Changed the urlStr variable to my redirect URL (i.e., redirectUrl += "http://www.google.com.hk"
Regards
Dont forget to rate helpful posts
11-18-2015 11:31 PM
Hi Sandeep, cool idea, any template i can start with ? so it is more easily then write the whole pages from stretch :)
Thanks!!
11-19-2015 01:51 AM
Hi,
Here is the link:
https://software.cisco.com/download/release.html?mdfid=282600534&softwareid=282791507&release=1.0.2&relind=AVAILABLE&rellifecycle=&reltype=latest
Download it and change accordingly.
Regards
Don't forget to rate helpful posts
11-19-2015 02:14 AM
Hi Sandeep,
I tried the below but still failed, any ideas?
function submitAction(){
var link = document.location.href;
var searchString = "redirect=";
var equalIndex = link.indexOf(searchString);
var redirectUrl = "";
if (document.forms[0].action == "") {
var url = window.location.href;
var args = new Object();
var query = location.search.substring(1);
var pairs = query.split("&");
for(var i=0;i<pairs.length;i++){
var pos = pairs[i].indexOf('=');
if(pos == -1) continue;
var argname = pairs[i].substring(0,pos);
var value = pairs[i].substring(pos+1);
args[argname] = unescape(value);
}
document.forms[0].action = args.switch_url;
}
if(equalIndex >= 0) {
equalIndex += searchString.length;
redirectUrl = "";
redirectUrl += link.substring(equalIndex);
}
if(redirectUrl.length > 255){
redirectUrl = redirectUrl.substring(0,255);
}
redirectUrl += "google.com.hk";
document.forms[0].redirect_url.value = redirectUrl;
document.forms[0].buttonClicked.value = 4;
document.forms[0].submit();
}
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide