Hotspot traffic redirection

Hi all.
That’s the first time I use mikrotik, and I’m trying to get a hotspot working, but not a wireless one. I mean, I’ve got a computer with 2 NIC’s, one to the public internet and the other one to the intranet. I want all web traffic to go through this computer, so I’ve tried to configure mikrotik as a hotspot, so the first time a user attemps to connect to a website, the router redirects the traffic to the login page, so the user cannot access any website until he/she is logged in.
The problem is that there’s no traffic redirection. The users can log in if they go to the address of the gateway, but if they try another direction an error screen appears (not connected, an error with the website…). As soon as they’re logged in, they have connection with everywhere, but I need the redirection before the logging. I’ve followed the instructions in this website: http://www.mustnofee.com/tutorials/37-tutorials/52-setting-up-a-basic-mikrotik-hotspot
I’me sure it’s an easy issue, but I’m a newbie with all of this…

Thanks a million in advance
Pablo

Assign ip to public and local interfaces.

[admin@Mikrotik] > ip address add address=x.x.x.x/x interface=ether1
[admin@Mikrotik] > ip address add address=x.x.x.x/x interface=ether2

Add gateway and DNS.

[admin@MikroTik] > ip route add gateway=x.x.x.x/x interface=ether1
[admin@MikroTik] > ip dns add primary-dns=x.x.x.x secondary-dns=x.x.x.x allow-remote-requests=yes

If you want, run dhcp server setup on ether2 otherwise skip this and just run hotspot setup wizard on interface=ether2.

That’s it.

You may want to remove all current settings first.

Now’s working, I think it was all about a wrong previous configuration.

Thanks!