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 6773579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:41:05+00:00 2026-05-26T15:41:05+00:00

Ech, my query string look’s like: http://localhost/index.php?page=public&another=http://www.google.com?omg=tt&nop=asd And afcourse i rewrite it with regex

  • 0

Ech, my query string look’s like:

http://localhost/index.php?page=public&another=http://www.google.com?omg=tt&nop=asd

And afcourse i rewrite it with regex to:
regex:
RewriteRule ^pass-([^=]*)=([^=]*)$ index.php?page=$1&another=$2 [L]

http://localhost/pass-url=http://www.google.com?omg=tt&nop=asd

(1)But then url becomes to: http://www.google.com only.

If i try urlencode with this url without regex:

http://localhost/index.php?page=public&another=http://www.google.com?omg=tt&nop=asd

it echo:

http%3A%2F%2Fwww.google.com%3Fomg%3Dtt

(2)In this case &nop=asd part gone.

So how to make (1) work and why (2) do this ?
The biggest question would be how to pass two question and ampersand in query string ?
Any suggestion regarding this situation ?

  • 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-05-26T15:41:06+00:00Added an answer on May 26, 2026 at 3:41 pm

    Problem is in your rewrite rule. Have it like this:

    RewriteRule ^pass-([^=]*)=([^=]*)$ hw.php?page=$1&another=$2 [L,QSA]
    

    Note that additional QSA flag which will make sure to preserve original query parameters.

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

Sidebar

Related Questions

My query always produces duplicate results. How best do I go about troubleshooting this
Thank you so much for helping! Ok, the portion of my query producing duplicate
I'm pretty new to php but i'm learning pretty fast, I have a question
I am trying to show information from database without reloading the page. I have
I have the following situation: For ech tree node I have a different type
I have a script that has the following content: <?php if(isset($_POST['sent-urls']) || $_POST['sent-urls'] ==
just starting with cakephp and almost with php after a few years without use
I am running nginx with PHP-FPM. My nginx configuration for handling php files looks
I have a listView, and ech item of listView has textView. I have set
Assume that we have this SQL statement: UPDATE article SET saison='12E', mode='ECH', client='SAS', WHERE

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.