Preserve Variables
-
carbonisle
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
8 years 4 months ago #5078
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 4 months ago - 8 years 4 months ago #5087
by admin
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
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.164 seconds