PDA

View Full Version : .htaccess query_string -- help



tio
03-21-2010, 01:43 PM
hello -

i've googled and found many sites insightful but still nothing.

i'm trying to get a string variable to the main page that the request was from.

here is my .htaccess code



Options +FollowSymlinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (.*)$
RewriteRule ^index.php?$ ./test/index.php?Id=1 [L] $


what i want to do is: if someone types: www.example.com/12345
is get that if the value is in the query string. by passing the get variable through the url string that is rewritting it to the original address.

so users wont see /test/index.php?Id=%1

thanks in advance for your help