Magento 2 404 Admin Panel

I recently installed Magento ver 2.0

After a successful installation, I tried to enter the admin panel, but he said that 404 was not found.

I really don't understand what causes such a problem. In addition, the URL shows that I am registered in admin oanel, but the dashboards are not visible.

URL:

Can anyone shed some light on this?

+5
source share
4 answers

I had the same problem. I had to enable the module mod_rewriteand set the AllowOverridevalue allto AllowOverride /var/www/htmlin the apache configuration file.

+3
source

Maybe a known issue? Some work information is currently also available.

https://github.com/magento/magento2/issues/254

:

: //​​////Db.php: 64

if($extName == 0) {
  continue;
}

foreach ($extensions as $extName) {
+1

, magento2 /backend

0

REQUEST_URI SCRIPT_FILENAME SCRIPT_NAME.

, /index.php/ , url Magento , .

, _updatePathUseRewrites /app/code/core/Mage/Core/Mode/store.php: :

protected function _updatePathUseRewrites($url)
{
if ($this->isAdmin()    || !$this->getConfig(self::XML_PATH_USE_REWRITES) || !Mage::isInstalled()) {
$url .= basename($_SERVER['SCRIPT_FILENAME']).'/';        }
return $url;
}

    protected function _updatePathUseRewrites($url)
{
if ($this->isAdmin()    || !$this->getConfig(self::XML_PATH_USE_REWRITES) || !Mage::isInstalled()) {
$url .= '/';        }
return $url;
}

.

-2

All Articles