尋找一點幫助,因爲最後會圍繞圈子試圖瞭解問題可能出在哪裏。URL重寫 - 不是來自.htaccess - Magento
我們最近有我們對www.domain.com這將通過重寫規則店Magento的一面: 「domain.com/」
這是正確的。
但是,由於我們針對英國市場,該網站相對較新,因此我們決定購買.co.uk域名並進行轉換。使它成爲www.domain.co.uk,這在magento數據庫/後端中全部正確更改,但現在開始顯示: 「domain.co.uk」
結尾缺少正斜槓。
我已經在mysql數據庫中確認這個URL有一個斜槓,並且甚至從.htacess中關閉了mod_rewrite,但仍然有一個重寫發生在某個地方。
這似乎是永遠的,因爲我在前面的網站上設置了刪除「http://」並添加正斜槓,但我不記得如何或在哪裏設置它。
如果任何人都可以指出我正確的方向,將不勝感激。
親切的問候
編輯:下面是重寫代碼:
<IfModule mod_rewrite.c>
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
############################################
## you can put here your magento root folder
## path relative to web root
RewriteBase/
############################################
## uncomment next line to enable light API calls processing
# RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]
############################################
## rewrite API2 calls to api.php (by now it is REST only)
RewriteRule ^api/rest api.php?type=rest [QSA,L]
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]
############################################
## redirect for mobile user agents
#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
############################################
## always send 404 on missing files in these folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
############################################
## never rewrite for existing files, directories and links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
RewriteRule .* index.php [L]
</IfModule>
你好, 是在core_config_data網址進行了更新和緩存泛紅/刪除。 是的重定向確實顯示正確的重定向。 .htaccess是否將正斜槓添加到主頁和magento中的任何CMS頁面? – user994319