Jump to content

Odd Problem


unkwntech

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.