× Here you can get community support related to ReDJ.

Redirect url with ?

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 4 months ago - 7 years 4 months ago #5775 by AchLive
Redirect url with ? was created by AchLive
Hi, I want to redirect from this
url /registrazione?invite_code=[get_invite_code]&invito=vero
to this url
/registrazione
I tried to write this
^/registrazione\?invite_code=[get_invite_code]&invito=vero
but it does not work
How do I get my results, thanks for the support
Last edit: 7 years 4 months ago by AchLive.

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

More
7 years 4 months ago #5777 by admin
Replied by admin on topic Redirect url with ?
Hi,
try this rule (literally):
From URL: ^/registrazione\?invite_code=
To URL: {scheme}://{siteurl}/registrazione
Request only: true (checked)

Of course the destination URL MUST EXISTS.

Kind regads,
Luigi

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

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 4 months ago - 7 years 4 months ago #5779 by AchLive
Replied by AchLive on topic Redirect url with ?
Thanks, it looks like it works now.
Just one question, I have to be sure that the redirect is to be performed only when invite_code = [get_invite_code] that is exactly [get_invite_code]
If the value is different from [get_invite_code], exactly as it is written, then it must not run any redirects
Last edit: 7 years 4 months ago by AchLive.

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

More
7 years 4 months ago #5781 by admin
Replied by admin on topic Redirect url with ?
So you need to escape also [ and ]:
From URL: ^/registrazione\?invite_code=\[get_invite_code\]
To URL: {scheme}://{siteurl}/registrazione
Request only: true (checked)
Decode URL: true (checked)

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

  • AchLive
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 4 months ago #5783 by AchLive
Replied by AchLive on topic Redirect url with ?
Thank you.
If you want to add all the complete url should be this
^/registrazione\?invite_code=\[get_invite_code\]&invito=vero$
Tell me if it is correct

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

More
7 years 4 months ago #5784 by admin
Replied by admin on topic Redirect url with ?
Yes, and the final dollar is PERFECT.

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

Time to create page: 0.091 seconds