寻找一点帮助,因为最后会围绕圈子试图了解问题可能出在哪里。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