said by cdru:said by cowboyro:Why not use the KIS approach?
Because mod_rewrite can accomplish the same thing in fewer lines without having to run it through PHP.
If number of lines is an issue then squeeze it to one line:
<?php header( "Location: http://siteb.com". $_SERVER["REQUEST_URI"] . (strpos($_SERVER["REQUEST_URI"],'?')===false,"?","&") . "s=stuff") ?> ;
However it offers more granular control on how the redirect will be done and can be ported directly to different platforms (say IIS) or even to a different host that may not have mod_rewrite enabled.