unkwntech Posted June 9, 2009 Share Posted June 9, 2009 I have the following .htaccess RewriteEngine on RewriteRule ^audio/(.*?)/ audio.php?id=$1 #works fine RewriteRule ^browse/(.*?)/(.*?)/ browse.php?type=$1&sort=$2 #not working the first RewriteRule works fine however the second one is rewriting to the correct file but the parameters (type&sort) are not being passed. The browse.php currently looks like this: <pre> <?php print_r($_REQUEST); echo $_SERVER['REQUEST_URI'] . "\n" . $_SERVER['SCRIPT_NAME']; ?> </pre> This page is outputting the following: Array ( ) /browse/audio/length/ /browse.php Link to comment https://forums.phpfreaks.com/topic/161525-odd-problem/ Share on other sites More sharing options...
MadTechie Posted June 9, 2009 Share Posted June 9, 2009 try this RewriteRule ^browse/([^/]+)/([^/]+)/ browse.php?type=$1&sort=$2 #not working Link to comment https://forums.phpfreaks.com/topic/161525-odd-problem/#findComment-852403 Share on other sites More sharing options...
unkwntech Posted June 9, 2009 Author Share Posted June 9, 2009 Same story Link to comment https://forums.phpfreaks.com/topic/161525-odd-problem/#findComment-852411 Share on other sites More sharing options...
unkwntech Posted June 10, 2009 Author Share Posted June 10, 2009 **BUMP** Link to comment https://forums.phpfreaks.com/topic/161525-odd-problem/#findComment-852882 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.