Redirect url with ?
-
AchLive
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 23
-
Thank you received: 0
-
-
7 years 11 months ago - 7 years 11 months ago #5775
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 11 months ago by AchLive.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 11 months ago #5777
by admin
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
-
Less
More
-
Posts: 23
-
Thank you received: 0
-
-
7 years 11 months ago - 7 years 11 months ago #5779
by AchLive
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 11 months ago by AchLive.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 11 months ago #5781
by admin
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
-
Less
More
-
Posts: 23
-
Thank you received: 0
-
-
7 years 11 months ago #5783
by AchLive
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.137 seconds