Magento - Currency - 404 Not Found - The requested

2019-09-01 04:15发布

问题:

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.