0

How can I pass some argument(s) through a URL using a clean url:

From this:

http://example.com/something/index.html?Use_Id=abc

To this:

http://example.com/something/abc
6
  • you want to parse abc from the url? you have rewrited urls? Commented Jun 26, 2015 at 15:14
  • Are you using nodejs? If not, do you use mod_rewrite? So to make this clear: You want that example.com/something/abc routes to example.com/something/index.html?Use_Id=abc without changing the addressbar? Commented Jun 26, 2015 at 15:17
  • I want to use example.com/something/abc (to send trough an e-mail message or sms) and get the same results as if I were using example.com/something/index.html?Use_Id=abc Is it possible? Commented Jun 26, 2015 at 15:19
  • 1
    Yes, but to solve that, we need to know what kind of webserver are you running? Nodejs? Apache? lighttp? nginx? Commented Jun 26, 2015 at 15:29
  • Insufficient information to answer the question. You should be more specific, providing as many details as you can, or people trying to help you will just waste their time. Commented Jun 26, 2015 at 17:29

1 Answer 1

1
window.location.href = "http://example.com/something/abc?use_id="+your_value_variable

and if you need more than one, just add it to the string.

Sign up to request clarification or add additional context in comments.

1 Comment

that's not what OP asked

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.