I have a requirement, where admin is performing certain action on a custom module, he should be redirected to admin-dashboard on error. I tried redirection codes with different values but they lead to 404 page. Moreover the admin url is customized not a customary one. its like admin.thesitename.com/index.php/securecontrolpanel

i am still trying but decided to ask here :) if i can get a quick help.

1 Answer 1


Your question is somehow unclear but I can give it a try.

In order to redirect to the dashboard use this in a controller


If that does not work for you then post your code in the question.

  • thanks Marius, i too figured that, i got a clue in config.xml of adminhtml.
    – MTM
    Commented May 21, 2014 at 8:14
  • @MTM. Either accept this answer if it solved your problem or add your own answer describing what you did to solve the problem and accept that one.
    – Marius
    Commented May 21, 2014 at 8:45
  • the upvote you see for your answer is of mine :)
    – MTM
    Commented May 21, 2014 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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