问题描述:

I've installed Magento and noticed that accessing http://localhost/admin I get 404 but when accessing http://localhost/index.php/admin I'm able to access it normaly. By 404 I mean a server error, not the Magento's NoRoute page.

  • Cleared the cache and got no success.
  • Is there any workaround? Some frontend pages are inaccessible due this same issue.
  • Tried installing via command line and web browser. No success with both.

网友答案:

Activate your wampp server's Apache rewrite module.

网友答案:

404 = not found. 500 = server error.

If you're getting a 404 without index.php then you need to ensure that mod_rewrite is enabled on your server and that you have Admin -> System -> Configuration -> General -> Web -> Search Engine Optimization -> Use Web Server Rewrites set to Yes.

网友答案:

After wasting a few hours, just found the solution in this post: http://stackoverflow.com/a/11436027/1239006

Run (in Ubuntu):

a2enmod rewrite
service apache2 restart

And all problems will disapear!

+1 if I saved your day :D

相关阅读:
Top