Jump to content

Module Route goes 404 Troubleshooting Help


Recommended Posts

Hi I have installed the module Password recovery & High Security Password Storage v1.1.1 - by MADEF IT

This friendly SEO routes are not working for this module but are for rest of site.  The php code is

   public function hookModuleRoutes()
    {
        return array(
            'module-passwordsecurity-recoverpassword' => array(
                'controller' => 'recoverpassword',
                'rule' =>  'passwordlost/recover',
                'keywords' => array(
                    'module'  => array('regexp' => '[\w]+', 'param' => 'module'),
                    'controller' => array('regexp' => '[\w]+',  'param' => 'controller'),
                ),
                'params' => array(
                    'fc' => 'module',
                    'module' => 'passwordsecurity',
                    'controller' => 'recoverpassword',
                ),
            ),
            'module-passwordsecurity-changepassword' => array(
                'controller' => 'changepassword',
                'rule' =>  'passwordlost/change',
                'keywords' => array(
                    'module'  => array('regexp' => '[\w]+', 'param' => 'module'),
                    'controller' => array('regexp' => '[\w]+',  'param' => 'controller'),
                ),
                'params' => array(
                    'fc' => 'module',
                    'module' => 'passwordsecurity',
                    'controller' => 'changepassword',
                ),
            ),
        );
    }
I get a 404 every time I try to go to one of these pages accessing such as http://localhost/passwordlost/recover . When I access like this it works perfectly fine. http://localhost/index.php?fc=module&module=passwordsecurity&controller=recoverpasswrod    Does anyone know what is wrong or how I can troubleshoot this?  I wasnt able to find any relevant info in the logs I was looking at.  Thank you.
 
  • Sad 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...