2013-10-28 13 views

回答

1

在數據庫中,查找表core_config_data並搜索value like 'http%',您會發現所有url的配置。確保它們以斜線結尾。

+0

您好,我在DB檢查,一切都很好。我需要在Magento到config ......讓我怎麼辦呢???謝謝.. –

0

我不知道這個錯誤是由於你錯誤配置NGINX或數據庫造成的。

所以首先檢查你的數據庫(就像用162.209.98.218index.php搜索一樣)。如果你發現任何修復它(添加斜槓)。否則檢查你的NGINX配置文件。因此,它應該是這樣的,

server { 
     root  /home/magento/web/; 
     index index.php; 
Listen 162.234.98.222:80; 
#server_name ; 
     location/{ 
     index index.html index.php; 
     try_files $uri $uri/ @handler; 
     expires 30d; 
     } 
     location ~ ^/(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; } 
     location /var/export/ { internal; } 
     location /. { return 404; } 
     location @handler { rewrite//index.php; } 
     location ~* .php/ { rewrite ^(.*.php)/ $1 last; } 
     location ~* .php$ { 
     if (!-e $request_filename) { rewrite//index.php last; } 
     expires off; 
     fastcgi_pass 127.0.0.1:9000; 
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
     fastcgi_param MAGE_RUN_CODE default; 
     fastcgi_param MAGE_RUN_TYPE store; 
     include fastcgi_params; 
     } 
    } 
+0

嗨,謝謝你的回答... JNDPNT&Elavarasan。我發現錯誤是什麼..錯誤是在magento中的.htaccess文件。它的Rewritebase缺少Trialling斜線(/)。我修好了...... Thx爲你的時間。 JNDPNT&Elavarasan –

+0

最佳答案的人誰已經轉移到新的服務器位置: 1.取出餅乾和手動2. 設置以下cookie值: a.Cookie壽命:86400 b.Cookie路徑:/ ℃。 Cookie域:.domainame.com d。使用HTTP只有:沒有 e.Cookie限制模式:沒有 3.刪除註釋如果任何Varien.php //會話cookie PARAMS $ cookieParams =陣列( 「一生'=> $ cookie-> getLifetime(), 'path'=> $ cookie-> getPath(), 'domain'=> $ cookie-> getConfigDomain(), 'secure'=> $ cookie-> isSecure (), 'httponly'=> $ cookie-> getHttponly() ); 4.清除變量/緩存文件夾 5.重新加載Ctrl + Shift + R –

相關問題