hotspot login redirect error 404

hi all,

I tried to find it by searching, but could not find the answer. I use the mikrotik for a hotspot with Trial Login.

After clicking the start trial link, the client gets a “Error 404: Not found”.

It does not matter if your first input is http://www.google.com or 173.194.67.139 (=IP google.com).

After the error message, going to the website by typing again http://www.google.com works fine, so the login in general works.

The link in login.html is:

<a style="color: #088A08" href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)">

on the link results to:

http://hotspot/login?dst=http%3A%2F%2Fwww.speedtest.net%2F&username=T-00%3A25%3A4B%3A97%3AD3%3A94

Router OS just updated to 6.27
services/www to port 808
after removing dns name hotspot the link changes to:

http://10.0.17.1/login?dst=http%3A%2F%2Fwww.speedtest.net%2F&username=T-00%3A25%3A4B%3A97%3AD3%3A94

results stay the same.

It looks like the redirect is not being performed. What am I missing ?

Nobody ? :open_mouth:

i have same problem
i solve it by changing files in default dir

solved by:

http://forum.mikrotik.com/t/please-help-with-automatic-hotspot-login/37833/1

creating a login.html

:slight_smile:

Trial Hotspot - Error 404: Not found - 100% Solution

We edit the file (login.html) with notepad ++

1.- The first thing we do is search: link-orig-esc
2.- After we have found we select:

href=“$%28link-login-only%29?dst=$%28link-orig-esc%29&username=T-$%28mac-esc%29”

3.- And we replace it with this one:

href=“$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)”

Do not forget the quotes " " … God bless you!