I need to add a variable of the username to all of my URL's when the user is logged in.
So for example it would be:
- www.example.com/?user=user1
- www.example.com/category1/product1/?user=user1
The reason I need to add the variable is for sending the page to a PDF service as each user has a unique style to their template.
I have my variable set but how can I rewrite the page URL to include the variable if it isn't already included on the URL using php?