我將生產Magento應用程序複製到我的開發機器上。我更改了core_config_data表中的base_url(2行)。並且我在magento安裝目錄中刪除了/ var/cache/*。Magento base_url無法正常工作
但是當我去www.my_dev.com/shop時,它會將我重定向到www.my_production.com/shop。
這裏的core_config_data(我修改URL到假的):
mysql> select * from core_config_data;
+-----------+---------+----------+-------------------------------+------------------------------------------------------+
| config_id | scope | scope_id | path | value |
+-----------+---------+----------+-------------------------------+------------------------------------------------------+
| 1 | default | 0 | general/region/display_all | 1 |
| 2 | default | 0 | general/region/state_required | AT,CA,CH,DE,EE,ES,FI,FR,LT,LV,RO,US |
| 3 | default | 0 | catalog/category/root_id | 2 |
| 4 | default | 0 | admin/dashboard/enable_charts | 1 |
| 5 | default | 0 | web/unsecure/base_url | http://www.my_dev.com/shop/ |
| 6 | default | 0 | web/secure/base_url | http://www.my_dev.com/shop/ |
| 7 | default | 0 | general/locale/code | en_US |
| 8 | default | 0 | general/locale/timezone | America/Los_Angeles |
| 9 | default | 0 | currency/options/base | USD |
| 10 | default | 0 | currency/options/default | USD |
| 11 | default | 0 | currency/options/allow | USD |
+-----------+---------+----------+-------------------------------+------------------------------------------------------+
11 rows in set (0.00 sec)
我錯過了什麼?
謝謝。
山姆香港
check .htaccess – FlorinelChis
ping www.my_dev.com/shop - 輸出是什麼?你的開發機器ip是否響應? – FlorinelChis