来自外部网站的Href未登陆正确的页面

时间:2014-01-18 22:19:11

标签: magento redirect external

我在外部网站上有以下href:

<a href="http://localhost/example/magento/catalog/product/view/id/175">

当我直接在浏览器中输入它时,它会转到正确的页面但是当我反映它时,它会转到示例/ magento。

为什么会这样?

1 个答案:

答案 0 :(得分:0)

You need to open your .htaccess file from the root and do the below method:

############################################
## you can put here your magento root folder
## path relative to web root

    RewriteBase / 

    RewriteRule ^articles.*$ index.php [L,R=301]

############################################

Hope this will resolve your solution.