musicmaster Posted January 3, 2019 Posted January 3, 2019 I want to keep the Prestashop linking system. So I copied the link descriptions from my Prestashop installation (see attached picture). But it doesn't work. Neither the category links (like http://www.bilbil.com/34-chocolade), nor the product links (like http://www.bilbil.com/geslaagd/155-snoepblik-geslaagd.html) work. They result in 404s. In addition I have a problem that on my home page some pictures show the file-not-found image. But they do have an image and I can't get the image to show. Take for example http://www.bilbil.com/5722-homedefault/chocolade-munten-50-gram.jpg. This should refer to http://www.bilbil.com/img/p/5/7/2/2/5722-homedefault.jpg. But that image is there and the "pretty url" not.
musicmaster Posted January 3, 2019 Author Posted January 3, 2019 The funny thing: all this is working on my localhost, but not on the server. I have refreshed the .htaccess many times but it just doesn't have an effect.
musicmaster Posted January 3, 2019 Author Posted January 3, 2019 This is PHP 7.2. Could that be a problem?
lesley Posted January 3, 2019 Posted January 3, 2019 It could be, what is your local instance on? Is allow overrides set on the server as well?
musicmaster Posted January 3, 2019 Author Posted January 3, 2019 Localhost is on php 5.7. The servercode is a copy of the localhost code. Both have overrides enabled.
lesley Posted January 3, 2019 Posted January 3, 2019 Not overrides in your installation allow overrides in apache, https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride
musicmaster Posted January 3, 2019 Author Posted January 3, 2019 @lesley said in Product links don't work: Not overrides in your installation allow overrides in apache, https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride Sorry, this evades me. I thought we talked about TB/PS overrides and suddenly you refer to Apache overrides. What is your point? Is there something wrong with my Apache configuration?
lesley Posted January 3, 2019 Posted January 3, 2019 The point is, if you run apache without allow override enabled the htaccess that thirty bees creates will be ignored.
lesley Posted January 3, 2019 Posted January 3, 2019 Nice. As a tip, if you want to actually code your htaccess to your httpdconf, and disable allow overrides it does speed up an apache server.
musicmaster Posted January 3, 2019 Author Posted January 3, 2019 Thanks for the tip. As a tip from me: your blogpost on installing TB on DO doesn't mention this allowoverride stuff (or that you need to add modrewrite for it). It might be good to add it.
lesley Posted January 3, 2019 Posted January 3, 2019 Hmm interesting, I might have to revise it. They must have changed their image for their lamp stack since I wrote the article. I think I wrote it off their 7.0 image when that is what was widely used.
musicmaster Posted January 4, 2019 Author Posted January 4, 2019 It might be that DO had to redo things for Ubuntu 18.04. I set this droplet up two months ago and probably since then they repaired some bugs (in my install there was no Mysql password). I used to prefer Virtualmin but the fact that nowadays they don't even activate php reduced my trust. One curious question: I understand that my pretty url's did not work without overrides enabled. But what puzzles me is that on the homepage most of the images (80% at least) were shown correctly despite being a pretty url. How could that be?
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