title: Custom Account Controller Causes 404 On Address Book
body: <p>I've encountered a problem in our Magento installations that I've been having a really hard time tracking down. Whenever a customer goes to the "My Account" page and clicks the "Address Book" link, it sends them to the default 404 CMS page. I searched around Google and found a few similar problems, but they weren't quite the same. However, one solution that was offered was that a custom login redirect module was the cause.</p>
  
  <p>So I started disabling all of our custom modules one by one to see if that would fix the problem, and it turned out that disabling our custom Account Controller fixes the problem. I tried to track this down further by using Mage::log() in the overridden methods to see if they were getting called when trying to access /customer/address/, but nothing showed up in the logs.</p>
  
  <p>The only lead I have left is that it's a problem with my controller configuration. This is the config.xml I have set up:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;modules&gt;
          &lt;mymodule_login&gt;
              &lt;version&gt;0.1.0&lt;/version&gt;
          &lt;/mymodule_login&gt;
      &lt;/modules&gt;
  &lt;frontend&gt;
     &lt;routers&gt;
        &lt;mymodule_login&gt;
           &lt;use&gt;standard&lt;/use&gt;
           &lt;args&gt;
               &lt;module&gt;MyModule_Login&lt;/module&gt;
               &lt;frontName&gt;customer&lt;/frontName&gt;
           &lt;/args&gt;
        &lt;/mymodule_login&gt;
     &lt;/routers&gt;
  &lt;/frontend&gt;
  &lt;global&gt;
    &lt;rewrite&gt;
      &lt;mymodule_login&gt;
        &lt;from&gt;&lt;![CDATA[#^/account/#]]&gt;&lt;/from&gt;
        &lt;to&gt;/customer/account/&lt;/to&gt;
      &lt;/mymodule_login&gt;
    &lt;/rewrite&gt;
  &lt;blocks&gt;
  &lt;customer&gt;
      &lt;rewrite&gt;
          &lt;register-login&gt;MyModule_Login_Block_View&lt;/register-login&gt;
      &lt;/rewrite&gt;
      &lt;/customer&gt;
      &lt;login&gt;
          &lt;class&gt;RegisterLogin&lt;/class&gt;
      &lt;/login&gt;
    &lt;/blocks&gt;
  &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>I think it might be a problem with the rewrite from #^/account/# to /customer/account/, but I don't know enough about Magento rewrites to determine if that's accurate or not. The methods I have overwritten are: loginPostAction, _loginPostRedirect, and _welcomeCustomer.</p>