Magento - Currency - 404 Not Found - The requested URL /directory/currency/switch/currency/USD/ was not found on this server

Deadly 提交于 2019-12-13 04:14:59

问题


Recently I bought theme and now I have troubles with currencies.

When I switch the currency I got message like that:

The requested URL /directory/currency/switch/currency/USD/uenc/aHR0cDovL3ZvdmFuLm5pY2t3bGtlci5jb20v/ was not found on this server.

But if I go back I'll see that currency changed.

How to prevent this "error" ?


回答1:


I found the solution.

I was needed to remove index.php from url in magento.

I did that:

1) System >> Configuration >> Web >> Search Engines Optimization >> Use Web Server Rewrites : YES

2) System >> Configuration >> Web >> Secure >> Use secure URL Frontend: YES

3) Then created the .htaccess file under my magento installed folder with this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Thanks for trying help me.



来源:https://stackoverflow.com/questions/25909247/magento-currency-404-not-found-the-requested-url-directory-currency-switc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!