× Here you can get community support related to ReDJ.

Redirect URL based on user

  • manDhala
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 1 month ago - 8 years 1 month ago #5672 by manDhala
Redirect URL based on user was created by manDhala
Hi,

I have been trying to redirect some url like: example.com/index.php/reservation
To a webpage that uses the username passed by the url to actually get logged, it'll be something like example.com/reservation/index.php?email=example@mail.com

I'm using the ReDJ version for Joomla 1.5 and if I use the macro {user}, even if i'm logged in Joomla, it will redirect to: example.com/reservation/index.php?email=@mail.com
Leaving the user empty, and if I use {username} it doesn't even recognize it giving me this url: example.com/reservation/index.php?email={username}@mail.com

What am I doing wrong?
Last edit: 8 years 1 month ago by manDhala.

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #5675 by admin
Replied by admin on topic Redirect URL based on user
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
  • New Member
More
8 years 1 month ago #5678 by manDhala
Replied by manDhala on topic Redirect URL based on user
From URL : /reservation

To URL : {siteurl}/res/index.php?email={user}@mail.com

Redirect 301

Please Log in or Create an account to join the conversation.

More
8 years 1 month ago #5679 by admin
Replied by admin on topic Redirect URL based on user
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
  • New Member
More
8 years 1 month ago #5682 by manDhala
Replied by manDhala on topic Redirect URL based on user
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.

More
8 years 1 month ago #5683 by admin
Replied by admin on topic Redirect URL based on user
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