From local server to live web server, links not wo

2019-05-30 16:49发布

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?

2条回答
我只想做你的唯一
2楼-- · 2019-05-30 17:23

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/

查看更多
来,给爷笑一个
3楼-- · 2019-05-30 17:36

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

查看更多
登录 后发表回答