I have been wrestling having a mod_rewrite rule that does not appear to become working. Briefly, I would like the next URL: www.servername.com/showtest/1 to redirect to: www.servername.com/showtest.php?id=1

I figured the next during my .htaccess should obtain the redirect working:

RewriteEngine On
RewriteRule ^showevent/(\w+)/?$  showevent.php?id=$1 [L,R,QSA]

However, it does not appear to operate and that i the $_GET and $_REQUEST variables in PHP are generally empty, so far as I can tell.

I've attempted to complete some debugging, including a number of different Regexs. I additionally switched on mod_rewrite logging to take a look around (I am focusing on a nearby server). Fundamental essentials relevant lines:

127.0.0.1 - - [01/Nov/2011:12:25:55 +0100] [127.0.0.1/sid#b7843948][rid#b76d0058/subreq]   (1) [perdir /var/www/1277/] pass through /var/www/1277/showevent.php
127.0.0.1 - - [01/Nov/2011:12:25:55 +0100] [127.0.0.1/sid#b7843948][rid#b76db058/initial] (3) [perdir /var/www/1277/] add path info postfix:    /var/www/1277/showevent.php -> /var/www/1277/showevent.php/1
127.0.0.1 - - [01/Nov/2011:12:25:55 +0100] [127.0.0.1/sid#b7843948][rid#b76db058/initial] (3) [perdir /var/www/1277/] strip per-dir prefix: /var/www/1277/showevent.php/1 -> showevent.php/1
127.0.0.1 - - [01/Nov/2011:12:25:55 +0100] [127.0.0.1/sid#b7843948][rid#b76db058/initial] (3) [perdir /var/www/1277/] applying pattern '^showevent/(\w+)/?$' to uri 'showevent.php/1'
127.0.0.1 - - [01/Nov/2011:12:25:55 +0100] [127.0.0.1/sid#b7843948][rid#b76db058/initial] (3) [perdir /var/www/1277/] add path info postfix: /var/www/1277/showevent.php -> /var/www/1277/showevent.php/1

It appears that, rather than re-conntacting showevents.php?id=1, it's spinning to showevent.php/1

I'd welcome any assist you to could give.

It will happen, due to the Flags you utilize inside your rewrite rule. You need to change

[L,R,QSA] to simply "[L]"

See http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriteflags for reference.