× Here you can get community support related to ReDJ.

Preserve Variables

  • carbonisle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #5078 by carbonisle
Preserve Variables was created by carbonisle
I would like to redirect a simple url to a common page:

mysite.com/john -> mysite.com/referral?emp=john
But, I'm hoping to use a 200 redirect so that the user still sees mysite.com/john and not the mysite.com/referral?emp=john

The problem, I fear, is that doing this will remove the GET variable from the pages use. The page uses the 'emp' variable to build a query for the page. Is it possible to show the simple url (mysite.com/john) and still make the variable available to the ($_GET) being used on the page?

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

More
8 years 4 months ago - 8 years 4 months ago #5087 by admin
Replied by admin on topic Preserve Variables
Hi,
never tested, but if you create an internal redirect the destination URL will be overridden with all variables so it should work. Create the rule with 301 redirect and check if it works. After this, just change the redirect type to 200.

Kind regards,
Luigi
Last edit: 8 years 4 months ago by admin.

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

  • carbonisle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #5092 by carbonisle
Replied by carbonisle on topic Preserve Variables
Seems to work! Thanks!

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

More
8 years 4 months ago #5094 by admin
Replied by admin on topic Preserve Variables
U're welcome.

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

Time to create page: 0.164 seconds