Community discussions

MikroTik App
 
jdmarti1
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Hotspot Re-direct

Thu Dec 08, 2005 4:12 am

I have the hotspot setup on my AP, but I don't want the login page to appear. I want the person to be re-directed to my website, and be allowed to look at all of the webpages on my domain. I assume that I can use the walled garden to allow only my pages. What I can't figure out is how to send them to my homepage instead of the login page.
 
BurstNET

Thu Dec 08, 2005 4:34 am

change the login page html to be a redirect.
as simple as it can get... :-)


SMA
 
jdmarti1
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Thu Dec 08, 2005 4:46 am

How?
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Thu Dec 08, 2005 1:08 pm

Something like this should do it...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
        <title>Redirecting... Just one moment...</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <meta http-equiv="Refresh" content="0;URL=http://www.your-website-here.com">
</head>
<body>

<p>Just a moment - we are redirecting you to our homepage...</p>

</body>
</html>
Remember to substitute the correct URL for the "http://www.your-website-here.com" in the HTML header...

Best regards,
Christian Meis
 
jdmarti1
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Fri Dec 16, 2005 8:05 pm

The redirect works great, but for some reason the websites I am sending them to will not show up. All you get is an IE page saying this page can't be displayed. Here is my walled garden setup - am I missing something here, or is there something else I need to setup besides the walled garden? Any ideas?

[magicwisp@MagicWISPMT2] ip hotspot walled-garden> print
Flags: X - disabled, D - dynamic
0 server=hs-MT22.4-1 dst-host=mysite.com path=http://www.mysite.com/
action=allow
 
jdmarti1
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Any Ideas

Tue Dec 20, 2005 4:56 am

Any ideas on what I am doing wrong?
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Tue Dec 20, 2005 10:31 am

Perhaps the dst-host should be "www.mysite.com", too? Depending on your server config...

Christian
 
jdmarti1
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Thu Dec 22, 2005 1:00 am

That wasn't the problem. Still getting the IE can't be displayed page.
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Thu Dec 22, 2005 10:29 am

Hmmm. How is your webserver set up?
Is this a HTTP/1.1 hosting (i.e. several virtual hosts with different names using only one ip address)? Then you should try a seperate virtual server with a dedicated ip address - perhaps this helps...

Christian
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Thu Dec 22, 2005 3:12 pm

Path is only a path on specific server and not a complete url. Leave empty for
any path.
Dst-host must match whole hostname. Use wildcard to accept any prefix:

/ip hotspot walled-garden set 0 dst-host="*.mysite.com" path=""
 
jdmarti1
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Thu Jan 05, 2006 8:31 pm

Still no change. I made the change that normis talked about, but it still won't redirect. I am about to the point of giving up.
 
patricks
just joined
Posts: 2
Joined: Tue Oct 11, 2005 11:27 am

Mon Jul 03, 2006 5:35 am

Set the walled garden IP List entry for the IP Address of the server you are redirecting to. I have been looking at this HS stuff for about an hour now and redirect works just fine I just need to config it to allow me to connect to Radius and to our CC Gateway.

Who is online

Users browsing this forum: No registered users and 6 guests