01-26-04 04:33 PM
hi all
i'm trying to use mod_rewrite to trasform
www.mysite.com/directory/something
to
www.mysite.com/directory/index.php?value=ball
my .htaccess is configured as follow
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^([^/]+)/?$ index.php?value=$1 [L]
but when i try to see if the value "ball" is in the variable, i find
"index.php" and not "ball".
This is the output of the test page:
Article Name: index.php (index.php insted of ball)
where i mistake? the question mark between .php and value makes
problem? but how can i use the variables?
thanks
[ Post a follow-up to this message ]
|