Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nginx friendly URLs

Featured Replies

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!!

Not really a bug. For Working with nginx you have to rewrite htaccess rules for nginx. Use tool linked by @the-rampage-rado above :-)

  • 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:

  • 6 months later...

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.

Yes, you can tell them that and they will understand. Basically they only need the rewrite section.

@mdekker , I thought that keepalive was useless with http2 :/

Oh, you're right. Didn't see the config. for the different protocols.

Does anyone have config for http 2, 1.1 and 1.0 ?

is there are helpful tricks with http2? adding extra path for CSS etc.?

@mdekker may i ask what solution you used to figure out if the sites should deliver a webp vs a jpg file ?

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;

Hmm that could be done with something like this in Nginx if i recall right.

map $httpaccept $webpsuffix { default ""; "~*webp" ".webp"; }

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.

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

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.

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/

  • 10 months later...

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.