cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Routes and CSS in Magento 2

Issue with Routes and CSS in Magento 2

Guys, I'm having a problem. Magento 2 runs, but the routes don't work, and neither do the CSS files, as shown in the pictures below.

 

 

Could someone help me figure out how to fix this?

 
 
 
2 REPLIES 2

Re: Issue with Routes and CSS in Magento 2

Hi.

Have you run the deployment commands yet?
Check the logs in Magento and the Network tab in the browser.

Mageplaza | Top-Rated Magento Extension and Solution Provider


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com

Re: Issue with Routes and CSS in Magento 2

Hi !
It sounds like you're facing an issue in Magento 2 where the routes aren't working, and CSS files are not loading correctly. This could be due to a variety of reasons, including cache issues, misconfigurations in routes or static files, or missing file permissions. Let's go through some troubleshooting steps to resolve these problems.

 

  • Clear Magento cache and redeploy static files.

  • Check your route configuration (routes.xml) for correctness.

  • Ensure correct file permissions for pub/static and var folders.

  • Verify .htaccess or nginx.conf settings for static file and route handling.

  • Enable Developer Mode for more detailed error messages.

  • Check the browser console for missing or incorrect static file paths.

  • Disable third-party extensions if the issue persists.

 

1# Best Magento 2 Page Builder Extension | Easy Drag & Drop