polyfade
Forum Replies Created
-
### Rewrite Rules Added by CyberPanel Rewrite Rule Generator RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] ### End CyberPanel Generated Rules. ### Rewrite Rules Added by CyberPanel Rewrite Rule Generator RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] ### End CyberPanel Generated Rules. # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule \.litespeed_conf\.dat - [F,L] ### marker CACHE RESOURCE start ### RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ### marker LOGIN COOKIE start ### RewriteRule .? - [E="Cache-Vary:,wp-postpass_8cb83f8ac912f90f466f97029503fc74"] ### marker LOGIN COOKIE end ### ### marker FAVICON start ### RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker DROPQS start ### CacheKeyModify -qs:fbclid CacheKeyModify -qs:gclid CacheKeyModify -qs:utm* CacheKeyModify -qs:_ga ### marker DROPQS end ### </IfModule> ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE # BEGIN NON_LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## ### marker BROWSER CACHE start ### <IfModule mod_expires.c> ExpiresActive on ExpiresByType application/pdf A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/vnd.microsoft.icon A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType image/jpg A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType image/png A31536000 ExpiresByType image/gif A31536000 ExpiresByType image/webp A31536000 ExpiresByType video/ogg A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/webm A31536000 ExpiresByType text/css A31536000 ExpiresByType text/javascript A31536000 ExpiresByType application/javascript A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType application/x-font-woff A31536000 ExpiresByType application/font-woff A31536000 ExpiresByType application/font-woff2 A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType font/ttf A31536000 ExpiresByType font/otf A31536000 ExpiresByType font/woff A31536000 ExpiresByType font/woff2 A31536000 </IfModule> ### marker BROWSER CACHE end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END NON_LSCACHE ### Rewrite Rules Added by CyberPanel Rewrite Rule Generator RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] ### End CyberPanel Generated Rules. cat: /home/spinlinedesign.com/public_html/.htaccess: No such file or directory # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress <filesMatch ".(css|jpg|jpeg|png|gif|js|ico|webp)$"> Header set Cache-Control max-age=31536000, public </filesMatch>
Thanks for responding @qtwrk. There’s currently no custom headers set up under Virtual Hosts > Context. But, shouldn’t the server just “obey” what has been added to my htaccess file already? These rules are listed at the very end of the file, too. Why should I need to set them up again in the OpenLiteSpeed control panel when I’ve set them in the LiteSpeed plugin settings and manually added them to the htaccess file myself?
Why should I have to be redundant 3 times? That seems a little crazy, but will try it anyway.Do I need to change something in the OpenLiteSpeed panel? (https://mydomain.com:7080)
This is a bit confusing when there is 3 different documentations for WP LiteSpeed Cache plugin, OpenLiteSpeed control panel and CyberPanel. I don’t know which to follow.
Forum: Plugins
In reply to: [Advanced Forms for ACF] Image support?I think my issue has to do with my theme or plugin conflict because it works on a fresh WP install.
However, what about the
js/frontend-gtag.min.js
9.3 KiB
script? This is still render-blocking. BTW, I’m not logged in and viewing as an Incognito session.Forum: Reviews
In reply to: [Gutenberg Block Editor Toolkit – EditorsKit] Extendify CrapDon’t you just hate it when good plugins turn bad?
Please don’t add in garbage no one asked for.I used this plugin to make Gutenberg more accessible, not for the purpose of adding more shameless blocks. That wasn’t the purpose of this plugin in the beginning, or maybe that was my assumption.
Forum: Plugins
In reply to: [amr ical events lists] How do you deregister this plugin’s styles?Nevermind. There’s a tick box to not use plugin’s styles. That’s good enough for me.
Forum: Plugins
In reply to: [amr ical events lists] Query String ErrorYes, this will mostly fall on deaf ears.
Another thing to add to my growing laundry list against them.
– Still using http/1.1 protocol, not even http/2; forget about http/3
– No Imagick support. (Now required by WordPress). The GD Images module is old and I don’t think there’s a way to properly transform transparent pngs to webp.
– No ability to enable other PHP modules.
– No database access other than PHPMyAdmin.
– Hard query limit per hour. Then, the site goes dark.
– Extremely antiquated CPanel.
– No SSH support.
– Host uses antiquated HDD instead of SSD storage.
– No PHP calendar support.Thanks for the hosting recommendation. I’ve used shared hosting like FastComet for clients sites for ~8 years. I’m pretty satisfied (but not married to them) because I know they check against all the pain points above.
Forum: Plugins
In reply to: [amr ical events lists] Query String Error@anmari thanks again. Here I was looking for some cryptic PHP function, but it’s that obvious. Yes, it seems the Calendar support was not rolled into their PHP build.
I can clearly see it on my personal, local and remote sites/servers.
Hmm, I wonder why the PHP team decided to make this optional? They include it automatically on the Windows version of PHP according to the docs.
- This reply was modified 3 years, 9 months ago by polyfade.
Forum: Plugins
In reply to: [amr ical events lists] Query String Error@anmari other than relying on the host’s word stating that
gregoriantojd
was compiled into their PHP version. Is there any way to find out for sure?Running
phpinfo()
on a page to list server details doesn’t tell me much regarding it.I tested your plugin running locally and remotely on different servers running PHPv4, and there are no issues. This host is awful.
Forum: Plugins
In reply to: [amr ical events lists] Query String ErrorI’m also having this problem of
bypassing_apache
, like so many other have posted to this forum. Both GD and imagick are installed and support webp, png and jpeg/jpg. I checked my server config against the one provided in the FAQs. https://gbiorczyk.pl/webp-converter/serverinfo.pngI tried both PHPv3.x and v 4.x
Both of the test png files for before and after succeeded too. For some reason my server isn’t allowing these access rules to be written to these htaccess files. File permissions are 644. Directories are 755. I can see the htaccess files this plugin has generated but there are no rules defined within them.
I don’t have any caching or security plugins enabled or server-side caching enabled for that matter.
I checked my wp-config and other htaccess files as well for anything that would prevent access to these files.
I’m completely dumbfounded.
Basically, I had to copy the htaccess files where this plugin was working from my local dev and add them to my shared hosting in order to get this working. This might be ill-advised but it was the only way to get this working. And it does work without error. The files get generated and the webp type has been assigned to relevant images.
Exactly, thanks. I was getting confused by this: https://htaccess-for-nginx.com/
- This reply was modified 3 years, 10 months ago by polyfade.
@mateuszgbiorczyk No worries, thanks.
- This reply was modified 3 years, 10 months ago by polyfade.
Entire nginx config for the site. Much of this stuff is what Valet adds in for SSL, etc.
server { location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } } server { listen 127.0.0.1:80; #listen 127.0.0.1:80; # valet loopback server_name mysite.test www.mysite.test *.mysite.test; return 301 https://$host$request_uri; } server { listen 127.0.0.1:443 ssl http2; #listen 127.0.0.1:443 ssl http2; # valet loopback server_name mysite.test www.mysite.test *.mysite.test; root /; charset utf-8; client_max_body_size 512M; http2_push_preload on; location /41c270e4-5535-4daa-b23e-c269744c2f45/ { internal; alias /; try_files $uri $uri/; } ssl_certificate "/Users/me/.config/valet/Certificates/mysite.test.crt"; ssl_certificate_key "/Users/me/.config/valet/Certificates/mysite.test.key"; location / { rewrite ^ "/Users/me/.composer/vendor/laravel/valet/server.php" last; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log "/Users/me/.config/valet/Log/nginx-error.log"; error_page 404 "/Users/me/.composer/vendor/laravel/valet/server.php"; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass "unix:/Users/me/.config/valet/valet.sock"; fastcgi_index "/Users/me/.composer/vendor/laravel/valet/server.php"; include fastcgi_params; fastcgi_param SCRIPT_FILENAME "/Users/me/.composer/vendor/laravel/valet/server.php"; fastcgi_param PATH_INFO $fastcgi_path_info; } location ~ /\.ht { deny all; } } server { listen 127.0.0.1:60; #listen 127.0.0.1:60; # valet loopback server_name mysite.test www.mysite.test *.mysite.test; root /; charset utf-8; client_max_body_size 128M; add_header X-Robots-Tag 'noindex, nofollow, nosnippet, noarchive'; location /41c270e4-5535-4daa-b23e-c269744c2f45/ { internal; alias /; try_files $uri $uri/; } location / { rewrite ^ "/Users/me/.composer/vendor/laravel/valet/server.php" last; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log "/Users/me/.config/valet/Log/nginx-error.log"; error_page 404 "/Users/me/.composer/vendor/laravel/valet/server.php"; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass "unix:/Users/me/.config/valet/valet.sock"; fastcgi_index "/Users/me/.composer/vendor/laravel/valet/server.php"; include fastcgi_params; fastcgi_param SCRIPT_FILENAME "/Users/me/.composer/vendor/laravel/valet/server.php"; fastcgi_param PATH_INFO $fastcgi_path_info; } location ~ /\.ht { deny all; } }