How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7260
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now

Htaccess - add parameter

Customer Question

I need to add a new parameter to any url ending in api/get_posts:

mywebsite.com/somewhere/api/get_posts/?paramater1=value1&paramater2=value2

mywebsite.com/somewhere-else/api/get_posts/?paramater1=value1&paramater2=value2

 

so that the finished url ends like this:

mywebsite.com/somewhere/api/get_posts/?paramater1=value1&paramater2=value2&newparameter=newvalue

mywebsite.com/somewhere-else/api/get_posts/?paramater1=value1&paramater2=value2&newparameter=newvalue

The original url my or may not already have parameters.

Your help would be appreciated. Thanks!

Submitted: 2 years ago.
Category: Programming