Posts

Showing posts from April, 2018

Magento 2 URL rewrite

https://magento.stackexchange.com/questions/91087/magento-2-admin-url-not-working-and-loaded-frontend-is-all-messy/120109#120109 First of all, apply proper permissions, enable apache rewrite_module and refresh apache server. chmod -R 777 / var /www/html/MAGENTO_2_ROOT_DIRECTORY/ sudo a2enmod rewrite sudo service apache2 restart For messy frontend , run following command from Magento root: php bin/magento setup: static -content:deploy Now clear var directory except .htaccess file and check admin. If you get 404 page, there may be an issue of Symlink . Fot this, Edit apache config file sudo gedit /etc/apache2/apache2.conf and replace this code : <Directory / var / www /> Options Indexes FollowSymLinks AllowOverride none Require all granted with <Directory / var / www /> Options Indexes FollowSymLinks AllowOverride All Require all granted Note: changed AllowOverride none to AllowOverride All Now restart apache sudo service apache2 restart ...