Why does the first key get lost?

New to mod_rewrite? This is a good place to start.

Why does the first key get lost?

Postby -=antiHERO=- » Tue Oct 28, 2003 7:46 am

I want to get all the informations, that are after the main-url, like this:
www.test.com/car/fiat/tuning ->in this case I want to get car/fiat/tuning

my code:
RewriteEngine On
RewriteRule /(.*) /site.php?keystring=$1

If I try it with www.test.com/car/fiat/tuning, the variable keystring contains: /fiat/tuning

Why does the first "folder"(car) get lost??? :confused:

PS:I´m from Germany so please ignore the mistakes in spelling...
-=antiHERO=-
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 27 guests

cron