From local server to live web server, links not working [Magento]

我只是一个虾纸丫 提交于 2019-12-08 05:06:46

问题


I've followed this steps to upload my local magento install my live web server.

Now, the homepage is working fine but every link on it directs you to a 404 not found error. Can't even access "/admin".

I assume this is a problem with the base URL but I've double checked on the database and they're correctly set at "path: web/unsecure/base_url" "value: http://www.mysite.com/"

Anyone got any idea why this is happening?


回答1:


have you copied the .htaccess file to your server where the rewrite rules are? If .htaccess and mod_rewrite rules are disabled then you can access your admin page via index.php/admin/




回答2:


The problem is that you have Magento set to use Search Engine Friendly URL's - for example, if you go to http://www.medicalexpress.eu/index.php/quem_somos you will see the page..

This can be caused by:

  1. Missing .htaccess file in the root of the server
  2. mod_rewrite not enabled on the server.

While you are investigating which of the above is the problem you can get the site working again in Magento by going to the System > Configuration > Web in the admin area (http://www.medicalexpress.eu/index.php/admin and then setting "Use Web Server Rewrites" to No under "Search Engines Optimization"

Cheers Adam



来源:https://stackoverflow.com/questions/6150260/from-local-server-to-live-web-server-links-not-working-magento

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!