Jump to content

Friendly URL error


Recommended Posts

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

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 by Ben.Fitzpatrick (see edit history)
Link to comment
Share on other sites

  • 5 months later...
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

  • 6 months later...
  • 3 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...