Fixes to 301.php and Wiz.php for multi-store use.

This fixes the bugs I ran into when trying to use the 301 Wiz plugin with a multi-store configuration.