Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9172905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:27:54+00:00 2026-06-17T16:27:54+00:00

Here is the thing: Let’s say I have a base URL like this: www.mysite.com?my_first_param=1&my_second_param=2

  • 0

Here is the thing:

Let’s say I have a base URL like this:

www.mysite.com?my_first_param=1&my_second_param=2

But now I want to add a new parameter to my URL:

www.mysite.com?my_first_param=1&my_second_param=2&my_redirect_site=www.myothersite.com

Imagine that I am using a service where they add new tracking parameters to my URL. For example:

first_tracking=value1&second_value=value2

Since my BASE url already has a “?” the parameters are added with a “&”, so my final URL would look like this:

www.mysite.com?my_first_param=1&my_second_param=2&my_redirect_site=www.myothersite.com&first_tracking=value1&second_value=value2

This is a correct URL with several parameters, but when I do the redirect to www.myothersite.com, since the parameters start with a “&”, they get lost. Would it be correct to add the tracking parameters with a starting “?” ? Like this:

www.mysite.com?my_first_param=1&my_second_param=2&my_redirect_site=www.myothersite.com?first_tracking=value1&second_value=value2

If not, what would be a good approach for dealing with this? I believe is responsibility of the redirect to pass through the tracking parameters to the redirect URL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:27:55+00:00Added an answer on June 17, 2026 at 4:27 pm

    You should URLencode each param name and value properly, so if the map of params you want is this:

    my_first_param => 1
    my_second_param => 2
    my_redirect_site => www.myothersite.com?first_tracking=value1&second_value=value2
    

    then you should pass this as the query string:

    ?my_first_param=1&my_second_param=2&my_redirect_site=www.myothersite.com%3Ffirst_tracking%3Dvalue1%26second_value%3Dvalue2
    

    You should be using a library which does this already to build up URIs to handle this encoding for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have some code like this in AS3 for(...) thing = new
Here's a coding problem for those that like this kind of thing. Let's see
NOTE: I'm working in .NET 3.5 here. Let's say I have sample base/child classes
Here is the thing. Right now I have this e-commerce web site where people
let's hope I can make this non-sujective Here's the thing: Sometimes, on fixed-typed languages,
I need your help with this query I can't solve. Here's the thing, let's
Let's say I have this array : $cars = array(Saab,Volvo,BMW,Toyota); and I also have
Here is my problem actually I'm facing now. I have a class, let's say
JS newbie question here: Let's say I have some simple methods for string manipulation,
Let's say I have a utility function that, for simplicity's sake (the real thing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.