February 16, 20179 yr According to the software specifications, you can use Nginx as server. But, if you want to activate the URL friendly option in the SEO & URLs tab, you see the following message: 1. Create a blank .htaccess file 2. Give it write permissions. I have tried to activate it, but it shows the written message. I don't want to use Apache as a server, since I consider Nginx a better server. So, What is the action to perform to fix this problem? Thank you!!
February 16, 20179 yr Have you tried manually making new nginx redirects? https://winginx.com/en/htaccess
February 16, 20179 yr Not really a bug. For Working with nginx you have to rewrite htaccess rules for nginx. Use tool linked by @the-rampage-rado above :-)
February 16, 20179 yr Author Thank you. I just have created the empty .htaccess file that the page tells me, and everything worked fine. It would be great if a better description will appear just to clarify that is necessary to create the file even if you are using nginx. By the way. The nginx configuration is the same as Prestashop uses, so, for those who want to use Nginx, you just have to use the same configuration. Thank you and regards!! :dancers:
September 3, 20179 yr If I say this "please put the code in the server block that handles domain" to my hosting support, do you think they will understand? I am no coder at all. Thanks.
September 3, 20179 yr Yes, you can tell them that and they will understand. Basically they only need the rewrite section.
September 5, 20179 yr I usually load all the ssl certificate + settings once outside the server blocks on top.
September 7, 20179 yr @mdekker may i ask what solution you used to figure out if the sites should deliver a webp vs a jpg file ?
September 7, 20179 yr Ahh okay - hopefully one day TB is possible to figure out if it should serve webp or jpg, depending on the users browser/platform. i would ad following to the nginx config, from my experience a few modules needs this rewrite. rewrite "^/module/([a-zA-Z0-9-]*)/([a-zA-Z0-9-]*)$" /index.php?fc=module&module=$1&controller=$2 last;
September 7, 20179 yr Hmm that could be done with something like this in Nginx if i recall right. map $httpaccept $webpsuffix { default ""; "~*webp" ".webp"; }
September 7, 20179 yr just found a small article in my bookmarks i played with. https://github.com/uhop/grunt-tight-sprite/wiki/Recipe:-serve-WebP-with-nginx-conditionally had the other pice of code in a dir with different nginx config options. Dont think there is 100% perfect solution since you have to check if there http_accept allows webp to be served.
September 7, 20179 yr True but in the end there is always better solutions aint there :P But ye it's a nice little article about webp and nginx,. Thos hu use Apache could look in to this one insted https://github.com/vincentorback/WebP-images-with-htaccess
September 7, 20179 yr If we did fit in the Recipe for WebP Nginx in to the base config file for TB documentation. And added the htaccess counter part to the .htaccess file. Then it should be possible to add webp image generation for TB, hopefully with a ajax driven image regeneration so we avoid the time outs that can give.
September 10, 20179 yr nice idea https://github.com/vincentorback/WebP-images-with-htaccess If anyone use css push and http2? https://www.smashingmagazine.com/2017/04/guide-http2-server-push/ nice tool to check speed: https://www.sitespeed.io/
July 24, 20188 yr How we can push the css of TB - the system creates numerous css and js files which are cached and with unique ID and i belive they are user based. How we can push the css and js without turning off ccc?
July 24, 20188 yr It's in the nature of HTTP that one can't push anything. One can only declare files as short lived, in the hope that the browser requests them again. Alternatively one can change the file name, so the next page request makes the browser requesting that other file. Third strategy is to deliver some JavaScript which repeatedly requests the same file. Which raises the question: why do you feel a need for "pushing" CSS? Each of the strategies mentioned makes caching pretty pointless.
Create an account or sign in to comment