mod_rewrite and php parameters
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > mod_rewrite and php parameters




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    mod_rewrite and php parameters  
Milko


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register