magento inner page not working , redirect to 404 page?

magento inner page not working , redirect to 404 page?

July 30, 2026 · Illustrated author avatarBy Stefan Bogdanescu
magento inner page not working , redirect to 404 page?

Magento Page Not Found Error: Inner Pages Redirecting to 404

Do you find yourself stuck with Magento inner pages not working and redirecting to the dreaded 404 page? You’re not alone! This is a common issue many developers face, especially when setting up new installations or migrating existing sites.

The Problem

In your case, only the home page seems to be accessible. When you click on category links like http://localhost/magento/men.html or product pages such as http://localhost/magento/tori-tank-586.html, they simply disappear into the ether of a 404 error.

Causes and Solutions

There could be several reasons behind this issue:

Incorrect Base URL Configuration

The base URL in your Magento configuration might not match the actual location where you’ve installed Magento. Double-check that both the frontend and backend URLs are set correctly under System > Configuration > General > Web.

.htaccess File Issues

Your .htaccess file seems well-formed, but there could be an issue with permissions or the RewriteBase directive. Ensure the file has the correct read/write permissions (644 is usually recommended) for the web server user. The RewriteBase line should point to your Magento installation directory relative to the web root.

SEO & URL Rewriting

If you’ve enabled SEO URLs and URL rewriting, but still face this issue, consider the following:

  1. Check if ‘Use Web Server Rewrites’ is enabled: Go to Stores > Configuration > General > Web. Ensure that ‘Use Web Server Rewrites’ is set to “Yes”. If it’s not, enable it.

  2. Verify RewriteBase in .htaccess: The RewriteBase directive should match the directory where your Magento files are located relative to the web root. For example:

    RewriteBase /magento/
    
  3. Secure URLs in Frontend: Ensure ‘Use Secure URLs in Frontend’ is also set to “Yes” in Stores > Configuration > General > Web.

URL Key Duplication

Magento might be encountering duplicate URL keys for different pages, leading to confusion and 404 errors. To check:

  1. Log into your Magento admin panel.
  2. Navigate to Catalog > URLs Management.
  3. Look for any duplicate or conflicting URL keys across categories and products.

Sometimes, a broken link in the CMS content can cause the entire page not to load correctly. Check all your CMS pages (under Content > Pages) for proper links.

Conclusion

Resolving Magento 404 errors requires a systematic approach that covers both configuration settings and server-level checks. Double-check your base URLs, .htaccess file, and SEO settings first.

Remember, Magento is highly configurable and sensitive to small changes in environments. Always test your configurations thoroughly before deploying them to production.

If you’re still struggling with this issue or need further assistance, feel free to reach out to our team at LaravelCompany. We specialize in Magento development and can help troubleshoot even the most complex issues!

Happy coding!

Catalog Security Admin Configuration

Our network