Change redirect to cmd instead of index