hi, i am a php developer.we have our social- networking site.
i want to implement mod_rewrite functionality in my site.for this i am working very hard.all the time a serious problem encounters when i try to use mod_rewrite.
actually i don't want to show query string in the url. you know this query string contains dynamic driven variables.
for example-
there is a link which gives some community's page in some website named"abc.com"
the link is-"http://abc.com/community.php?q=132
so it will give you the page of the community for which the value "132" is assigned to the variable "q"...say the name of that community is"metallica lovers".
Now as per our requirement i wanna give this stuff in url-
http://abc.com/mettalica lovers...
i want this page would open the desired community's page,name of which is "metallica lovers"....i write in ".htaccess file"
RewriteEngine On
Options +FollowSymlinks
RewriteBase abc.com/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ community.php?q=$1
ok...so what this code will do is it will store the name "metallica lovers" in the variable "q".....which will give 500 error..cuz there's not any page like this...
so I read many tutorials...took help from many friends...
and got to know that with the help of rewrite map I can get this problem solved...now..what I want is to retrieve the name of community and the values of that stored in variable "q"....ok..i can get this with the help of php code...now the main problem is that i want some dynamic code written in php...that gives me dynamic results...for example..if some user makes new account or some new user adds up with the website and make new group so the result should be fetched up with the help of this program....and this result should be stored in some mapping file..that would map the name of community with the corresponding value of "q"...
my dear friend can you help me out .........