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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:33:23+00:00 2026-05-13T09:33:23+00:00

I’m trying to get ‘clean’ PathInfo style URLs with query string parameters working on

  • 0

I’m trying to get ‘clean’ PathInfo style URLs with query string parameters working on PHP 5.3 and IIS 5.1 using FastCGI. I’ve found that I can use:

(1) http://www.example.com/index.php?/path/to/foo/

but not:

(2) http://www.example.com/index.php/path/to/foo/ (Note the missing ?)

Which isn’t a big issue until I want to mix URLs with a query string like:

(3) http://www.example.com/index.php?/path/to/foo/?color=blue&size=small

That makes my $_GET look like:

Array
(
    [/myapp/foo/bar?colour] => blue
    [size] => small
)

Is there way to get a URL scheme like (4) below to work, and with $_GET being populated correctly on IIS 5.1?

(4) http://www.example.com/index.php/path/to/foo/?color=blue&size=small

P.S. – I remember being able to do this before, but I suspect I was using Apache at the time and not IIS. Unable to use Apache for this. However the production server has IIS7 (I only have IIS 5.1 on my machine).

  • 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-13T09:33:24+00:00Added an answer on May 13, 2026 at 9:33 am

    For (3), you simply need to treat the query-string as a single piece of text. You should not be using $_GET – you should be using the QUERY_STRING environment variable directly, instead. You should get /path/to/foo/?color=blue&size=small.

    For (4), you should concatenate the PATH_INFO and QUERY_STRING environment variables, joined with a ?, and use that value. Again, you should get /path/to/foo/?color=blue&size=small. This is because PATH_INFO has /path/to/foo and QUERY_STRING has color=blue&size=small.

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

Sidebar

Ask A Question

Stats

  • Questions 386k
  • Answers 386k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The quick way to do this is to use a… May 14, 2026 at 11:43 pm
  • Editorial Team
    Editorial Team added an answer Check out the access 2010 redist Microsoft Access Database Engine… May 14, 2026 at 11:43 pm
  • Editorial Team
    Editorial Team added an answer That meta tag MUST be the first thing after the… May 14, 2026 at 11:43 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.