a064855 Posted March 12, 2015 Share Posted March 12, 2015 I have developed a multilanguage prestashop store completely in localhost using xampp in mac and it works. Both the backoffice and the store (frontoffice). After that, i have deployed it to amazon but there comes my problem. The backoffice works but the store doesn't. The browser just displays an apache 404 page and tells me The requested URL domain/prestashop/en/ was not found on this server. But it does exist. Besides, the backoffice confirms it. Inspecting the error.log I find the following message: [Thu Mar 12 11:12:37 2015] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/prestashop/en For what I see, Apache is treating the language (/en/) as file when it is not. I've searched all across the web and I can't find how to fix it. I know it is a server issue, but somehow can't find the solution. What's the matter here? Link to comment Share on other sites More sharing options...
bellini13 Posted March 12, 2015 Share Posted March 12, 2015 after you deployed the store to amazon, which i assume you did via copying the files from your localhost to amazon server, did you delete the .htaccess file in the root folder, and did you clear the smarty cache? Link to comment Share on other sites More sharing options...
a064855 Posted March 12, 2015 Author Share Posted March 12, 2015 I deployed the store to amazon via git, and i did delete the smarty cache files and deleted the .htaccess. I later discovered that mod_rewrite was not installed and i installed it but it has not worked yet. Link to comment Share on other sites More sharing options...
bellini13 Posted March 12, 2015 Share Posted March 12, 2015 Have you tried to disable friendly URL in the back office and confirm that things work properly with it disabled? Link to comment Share on other sites More sharing options...
gr_fenix Posted March 13, 2015 Share Posted March 13, 2015 Go to the data base, ps_configuration table and find a two fields called PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL and verify it Link to comment Share on other sites More sharing options...
a064855 Posted March 13, 2015 Author Share Posted March 13, 2015 I fixed the issue doing the following steps: Deleted the root .htaccess. Cleared the smarty cache files under ./cache/smarty/compile Load the mod_rewrite module that was not installed: a2enmod rewrite Added the Allowoverride All directive to /etc/apache2/apache2.conf <Directory /var/www/prestashop/>Options Indexes FollowSymLinksAllowOverride All</Directory> Link to comment Share on other sites More sharing options...
Recommended Posts