Intercepting a URL to a Member Page

This may have been asked before, but I could not find an answer searching through the forum.

I need to intercept user entered URL’s that reference member pages within my domain. For example, if someone enters “natuallakes.net” that will go to my home page where there is custom code to register or login. If someone enters “naturallakes.net/members-only” this points to a members only page and should be redirected to the home page. The behavior I see is that the default Wix login/sign-up page displays before any site code or page code executes. If I dismiss the Wix default, then my site code executes and does the redirect.

There does not seem to be a way to bypass the Wix default login page, which could be very confusing to my end users. I have looked at routers, but those appear to be dependent upon a URL prefix to execute. This is a case where the user is entering the URL in the browser, so a prefix is not dependable.

Any assistance appreciated.

1 Like

I was just thinking the same thing. To offer a more conducive admin user experience I want to be able to redirect to a page that then would say the used doesn’t have access, and after 2 seconds redirect to the home page.

It then records the users ip address in my dataset and sends and email to the customer, and myself letting use know that someone tried to either access the page or even log in.

How do we access that members redirect log in trigger? I don’t want randoms trying to sign up with facebook or google.