.htaccess przepisać „/book.php?id=1234” na „/ book / 1234”

Oto, co do tej pory miałem w swoim środowisku programistycznym:

php_value error_log log/php.log
php_value display_errors 1
php_value magic_quotes_gpc Off

RewriteEngine On

# remove slash
RewriteCond %{REQUEST_FILENAME} !-d

# file.php to /file
RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/
RewriteCond %{REQUEST_URI} !^/ajax.php
RewriteRule ^(.+)\.php$ http://localhost/$1 [R=301,L]

# /file to file.php
RewriteRule ^([^/.]+)$ $1.php [L]

Wypróbowałem wiele wariantów tej reguły, ale zawsze otrzymuję błąd 500:

RewriteRule ^(.*)$ /book.php?url=$1 [L]

I to jest w pliku error.log mojego Apache:

[Fri Jul 27 19:56:51 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Czego mi brakuje, dlaczego pętla przekierowania?

questionAnswers(2)

yourAnswerToTheQuestion