Yes!! neither 'remove_all_path' or 'remove_path' be working，if you want the right result，you should like this， $option = array( 'add_path' => '/', 'remove_all_path' => 'your path' ); 'add_path' just give a '/'， then you will (; 。