How can I set a page (https://website.com/secret-page) to only be accessed or loaded when a visitor comes from a specific page or URL.
Example: Visitor loads /secret-page but did not arrive from /go-to-secret and therefore can't access the page and gets redirected to the /redirect page.
I was thinking of using .htaccess to achieve this but I have no idea what the code would be.
The website is built using WordPress and Elementor. Hopefully, someone can assist.