Hey v@no can you help me
I was trying this without sucess:
Replace
/member.php?action=uploadform with
/uploadand Replace
member.php?action=uploadform&cat_id=cat_id with /upload
cat_id[/b]
Example: /upload31 (where 31 is the cat id) -- like your site
this is what i have done so far:
in .htaccess file (added):
RewriteRule ^upload$ member.php?action=uploadform%{QUERY_STRING}
RewriteRule ^upload\.([0-9]+)$ member.php?action=uploadform&cat_id=$1&%{QUERY_STRING}
in sessions.php file (added):
elseif (strstr($url, 'member.php?action=uploadform')) {
if (strstr($url, 'cat_id=')) {
preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
if (isset($matches[1])) {
$split = explode('?', $url);
$url = $split[0];
$query = @$split[1];
$url = str_replace('member.php?action=uploadform', 'upload'.$matches[1], $url);
$query = str_replace('cat_id='.$matches[1].'&', '', $query);
$query = str_replace('&cat_id='.$matches[1], '', $query);
$query = str_replace('cat_id='.$matches[1], '', $query);
if (!empty($query)) {
$url .= '?' . $query;
}
}
}
else {
$url = str_replace('member.php?action=uploadform', 'upload', $url);
}
}
What did i do wrong ?
: