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

  • Home
  • SEARCH
  • 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 8700277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:08:25+00:00 2026-06-13T02:08:25+00:00

Possible Duplicate: Mod Rewrite and Using PHP’s GET for URL’s When not Following the

  • 0

Possible Duplicate:
Mod Rewrite and Using PHP’s GET for URL’s When not Following the Rules

I’ve been scratching my head over this for days… I have a instance where a URL needs to pass different variables on a $_GET string.

I’m looking to parse the following URL:

http://www.domain.com/1/count/?var1=a&var2=b

Basically, I need to parse count as a $_GET['var3'] variable along with other additional vars appended after the trailing slash (?var1=a&var2=b).

I’ve tried the following along with many other options, but it results in a 404:

RewriteRule ^1/(count|list|detail)$/$ /1/service.php?method=$1
RewriteRule ^1/(count|list|detail)$/$ /1/service.php?method=$1&$2?

I’ve scoured many docs and answers, but I can’t find an applicable answer and admit, it’s driving me slowly insane!

Any help would be graciously accepted and appreciated.

  • 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-13T02:08:27+00:00Added an answer on June 13, 2026 at 2:08 am
    RewriteRule ^/?1/(count|list|detail)/?$ /1/service.php?method=$1 [QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Passing varible types though mod-rewrite howdy, I'm using the get method on
Possible Duplicate: Rewrite all queries to not need the .php extension using a mod_rewrite
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always
Possible Duplicate: Apache rewrite based on subdomain Is it possible to rewrite a URL
Possible Duplicate: Difference of create Index by using include column or not using Edit:
Possible Duplicate: How to successfully rewrite old mysql-php code with deprecated mysql_* functions? I
Possible Duplicate: PHP safe $_GET or not So I'm going to build a dynamic
Possible Duplicate: mod_rewrite - how to rewrite an URL? Hi can anyone of you
Possible Duplicate: mod rewrite and query strings The only way I know to pass

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.