Here is the config.xml

                                <Example_Csfollowup before="Mage_Adminhtml">Example_Csfollowup_Adminhtml</Example_Csfollowup>

here is the controllers at app\code\local\Example\Csfollowup\controllers\Adminhtml\CustomController.php

class Example_Csfollowup_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action
    public function indexAction()

        echo 'abc';


    public function listAction()


but when i visit localhost/m1/index.php/admin/custom, it redirect me to 404, anyone know what is the url it should be?

  • 1
    Please add in config.xml <admin> before <routers>. Do you have acl file? Jun 19, 2017 at 6:39
  • admin is exist in my code, just missing in question
    – hkguile
    Jun 19, 2017 at 6:48

1 Answer 1


Try adding a menu and add link inside it, Magento admin will check for security key value in URL, if its not correct or missing, it will redirect you to dashboard page.

Add adminhtml.xml in your module's etc folder.

<?xml version="1.0"?>
        <csfollowup module="csfollowup">
            <title>CS Follow</title>
                <items module="csfollowup">
                    <title>My Page</title>

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.