Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
    
Are you sure? Both of those return 404. –  Michael Hampton Oct 5 '12 at 13:45

1 Answer 1

up vote 1 down vote accepted

You would need to use a RewriteCond against the QUERY_STRING variable.

RewriteCond %{QUERY_STRING}  ^b=(.*)$  [NC]
RewriteRule ^/zakelijk/product/phone$  /zakelijk/product/phone?bundel=%1  [NC,L,R=301]

It might be wiser to do any business-logic redirects in PHP; rather than, complicating HTTPD behavior.

if (isset($_GET['b'])) {
  location($_SERVER['PHP_SELF'].'?bundel='.$_GET['b']);
  exit;
}
share|improve this answer
    
Thanks! i used the php redirect and it works perfectly. –  Kenneth Oct 11 '12 at 8:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.