Redirect URL based on user
-
manDhala
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
8 years 1 month ago - 8 years 1 month ago #5672
by manDhala
Last edit: 8 years 1 month ago by manDhala.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 1 month ago #5675
by admin
Hi,
can you post here your rule?
Thanks,
Luigi
Please Log in or Create an account to join the conversation.
-
manDhala
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 1 month ago #5679
by admin
Hi,
try this rule (literally):
From URL: ^/reservation$
To URL: {scheme}://{siteurl}/res/index.php?email={username}@mail.com
Request only: true (checked)
But there is no way to prevent the redirection based on the user status (loggedin/not loggedin), and for guests the {username} macro will be blank.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
manDhala
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
8 years 1 month ago #5682
by manDhala
With this From URL: ^/reservation$
It doesn't redirect anything, making it /reservation still outputs to {username} instead of converting it to the nickname of the logged user...
For the record, the "request only" option, doesn't even appear in "New item".
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 1 month ago #5683
by admin
I didn't notice you are using a very old version, so I am not sure if this rule can work with it, sorry.
The following user(s) said Thank You: manDhala
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds