Forum Moderators: phranque
I'm trying to define a rule but the expression doesn't match.
This is my rule:
RewriteRule ^/base/portfolio/([^/]*)/([^\?]*)\?(.*) /test.php?file=$2&portfolioId=$1$3
I want to convert url like this:
/base/portfolio/[id]/[myscript.php]?[param]
to this:
/base/portfolio/[myscript.php]?portfolio=[id]&[param]
The problem is that the params are not matched and used.
Could you help me?
Thank 10000 times.
Olivier.
Welcome to WebmasterWorld!
Glad you found a solution!
SHould you need to test for a query string value in the originally-requested URL, you can use a RewriteCond:
RewriteCond %{QUERY_STRING} ^your-specific-value$
Jim