Ben.Fitzpatrick Posted March 4, 2021 Share Posted March 4, 2021 Hello, When I enable "Friendly URL" in my back office my website stops working. All of the internal website links don't work and the only page I can load is the home/index page. All other pages return "404 Not Found - The requested URL was not found on the server". I've confirmed that my server is already configured to enable mod rewriting. When I click the link it redirects to the friendly URL however the 404 error appears. Any help would be greatly appreciate. Thanks. Ben -- PrestaShop 1.7.7.1 Link to comment Share on other sites More sharing options...
Ben.Fitzpatrick Posted March 4, 2021 Author Share Posted March 4, 2021 (edited) Update: - Website address is bees.com.au - Hosted on Google Cloud Platform using PrestaShop Click to Deploy - Cache has been cleared after enabling Friendly URL and error persists - All pages return the 404 error (i.e. content and product pages) except for the homepage - Disabled Apache's MultiViews option and no change - Change code in /etc/apache2/apache2.conf from: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> To: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All </Directory> And it didn't fix the problem either. Edited March 4, 2021 by Ben.Fitzpatrick (see edit history) Link to comment Share on other sites More sharing options...
Ben.Fitzpatrick Posted March 4, 2021 Author Share Posted March 4, 2021 Update: When I change "Redirect to the canonical URL to "No redirection (you may have to duplicate content issues)" the links works and you can navigate through the site, however, the product pages and the product images no longer work. Link to comment Share on other sites More sharing options...
rmalla Posted August 9, 2021 Share Posted August 9, 2021 On 3/3/2021 at 10:29 PM, Ben.Fitzpatrick said: Update: When I change "Redirect to the canonical URL to "No redirection (you may have to duplicate content issues)" the links works and you can navigate through the site, however, the product pages and the product images no longer work. were you able to find a solution? going through the same problem. have checked the server and prestashop config and apparently everything is working. Link to comment Share on other sites More sharing options...
rmalla Posted August 11, 2021 Share Posted August 11, 2021 hello, was a solution found? i'm going throught the same problem at the moment! Thanks! Link to comment Share on other sites More sharing options...
ZHSoft Posted August 11, 2021 Share Posted August 11, 2021 Please make sure your pseudo static file: .htaccess is normal. Link to comment Share on other sites More sharing options...
KunnSistemas Posted February 23, 2022 Share Posted February 23, 2022 Any solution for this problem? Thanks! Link to comment Share on other sites More sharing options...
Presta Fabrique Posted May 31, 2022 Share Posted May 31, 2022 On 8/11/2021 at 4:35 PM, ZHSoft said: Please make sure your pseudo static file: .htaccess is normal. Hi What do you exactly mean by normal? Link to comment Share on other sites More sharing options...
rmalla Posted May 31, 2022 Share Posted May 31, 2022 If friendly urls are not working it is probably beacause a misconfiguration of your server. If you have a complete server with root access (not a shared hosting) you can check your virtual hosts (/etc/apache2/site-avilable (or something similar)) and make sure inside your enabled virtual host you have Allow Override All, as someone stared above. Not sure about the exact terminology as Im writing this from my cellphone. This setting will allow that the .htaccess file automaticay created hy prestashop is taken into account, otherwise i believe its ignored. Dig into virtual hosts and I believe you will find the solution. Additionally make sure you research the security implications of putting Allow Override All, you may want to make sure it works for your usecase. Ricardo Malla Link to comment Share on other sites More sharing options...
KunnSistemas Posted May 31, 2022 Share Posted May 31, 2022 (edited) Yes, in my case it was due to server missconfiguration in virtual hosts. Hope it helps. /etc/apache2/sites-available https://askubuntu.com/questions/423514/how-to-enable-mod-rewrite-for-virtual-host Edited June 1, 2022 by KunnSistemas (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now