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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:55:40+00:00 2026-05-22T11:55:40+00:00

Currently I use: RewriteRule ^([^/\.]+)/?$ page.php?page=$1 [L] Which is good for when passing one

  • 0

Currently I use:

RewriteRule ^([^/\.]+)/?$ page.php?page=$1 [L]

Which is good for when passing one querystring through.

But is there a way just to pass all querystrings through? i.e. One page request might be:

domain.com/contact?course=23

and another may be:

domain.com/contact?workshop=41

So I need to know what the query string name is, but only ever one will be passed in at a time

  • 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-22T11:55:40+00:00Added an answer on May 22, 2026 at 11:55 am

    If I understand your question correctly, you can just add the [QSA] (query string append) flag to the end of your RewriteRule

    RewriteRule ^([^/\.]+)/?$ page.php?page=$1 [L,QSA]
    

    This will process your request as you’ve already done, and add any further querystring params onto the end.

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

Sidebar

Related Questions

I am updating a php app, which currently does not use url rewriting. The
I currently use a DataTable to get results from a database which I can
I currently use AnkhSVN to integrate subversion into Visual Studio. Is there any reason
I currently use the following command, but it's a little unwieldy to type. What's
We currently use LoadRunner for performance testing our web apps, but we also have
I currently use Python for most of my programming, but I'm interested in learning
I currently use the following code to upload one file to a remote server:
Hey, I am trying to use mod_rewrite to make http://example.com/style/universal.css show the page http://example.com/style.php?n=universal
I have just one root directory with index.php in it along with two folder
I'd like to know, how I can use php's function mode_rewrite correctly. I'm currently

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.