Apache Server configuration support - mod_rewrite and php parameters

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > mod_rewrite and php parameters





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod_rewrite and php parameters
Milko

2004-01-26, 11:33 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com