I have the following couched in my `.htaccess` file:

```
Options -Indexes

RewriteEngine on
RewriteBase /properties/
RewriteRule ^view/([0-9]+)$ view.php?id=$1 [QSA]

```

I want to write a "pretty" URL like <http://example.com/properties/view/1> to <http://example.com/properties/view.php?id=1>.

The `RewriteRule` is passing the request to my `view.php` script, but it doesn't seem to be doing the query string bit. For example, if I do `print_r($_SERVER)` I see the following:

```
Array
(
    ...
    [DOCUMENT_ROOT] => /Users/Martin/Sites/[removed]/
    ...
    [SCRIPT_FILENAME] => /Users/Martin/Sites/[removed]/properties/view.php
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /properties/view/1
    [SCRIPT_NAME] => /properties/view.php
    [PATH_INFO] => /1
    [PATH_TRANSLATED] => /Users/Martin/Sites/[removed]/1
    [PHP_SELF] => /properties/view.php/1
    ...
)

```

Why is `QUERY_STRING` empty? And why can't I access "1" with `$_GET['id']`?

**Note:** Obviously I've placed the `[removed]` tokens in the file paths.