Questions tagged [litespeed]

LiteSpeed Web Server (LSWS) is a high-performance Apache drop-in replacement.

292 questions
1
vote
1 answer

Excluding a Specific Page during URL Redirection in .htaccess

I'm trying to redirect all URLs from an old domain to a new one, except for two specific pages. I have implemented the following code in the .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(?:www\.)?olddomain\.com$ [NC] RewriteCond…
1
vote
0 answers

Elementor Blog Section Displays Incorrectly for Non-Logged In Users

I'm experiencing an issue with my website, TurnerNet.Tech, specifically with the blog section on the homepage. I recently built a new page using Elementor, and I'm encountering a problem with the display of the blog post's featured images. The blog…
1
vote
0 answers

ClickMagick Tracking Code Not Detected When Using LiteSpeed Cache Guest Mode Optimization

help me out with a bug when using Hostinger + Litespeed Cache and ClickMagick cmc.js in Wordpress This is the page getting the issue: https://love.conscientia.net/3-marriage-mistakes-n1-h3/ Following this video guideline to configure Litespeed…
1
vote
0 answers

How to redirect urls with /#!/ with .htaccess

I need to redirect old website urls to new urls, but they all are indexed with domain.com/#!/uri, the /#!/ is causing me problemes. For example I need to redirect : /#!/themes to /thematique/. I'd like to redirect to keep google SEO on the old…
1
vote
1 answer

Optimize Wordpress Nginx Website with Litespeed cache

I'm trying to optimize my website and I've tried many ways like using WP optimizer with minification and cache, w3 total cache with minification and more. The best score I get is whenever I use Litespeed optimization. Cache doesn't work on my nginx…
Thanos
  • 387
  • 1
  • 4
  • 10
1
vote
1 answer

How to edit .htaccess Server-wide

I use WHM for hosting which allows me to make many cpanel accounts. Every time I make a cpanel account it has a new .htaccess file inside public_html with the same code inside I want to be able to change this code to mine but not on one cpanel but…
1
vote
0 answers

CSS and (or?) shortcode loading slow with LiteSpeed Cache

I have used this code: form .this-class input[type="radio"] { position: fixed; opacity: 0; pointer-events: none; } And the radio button is hidden when I load the page without caching. But when I turn on Litespeed Cache the radio button is shown for…
Lars
  • 19
  • 3
1
vote
1 answer

Conditionally preloading images with PHP based on LiteSpeed cache plugin in WordPress

My Goal: Conditionally preload either the .webp version or the .jpg version of an image based on the version that will be served via the LiteSpeed cache plugin, not both. Explanation: I'm using the LightSpeed cache plugin on WordPress to…
cactusboat
  • 778
  • 2
  • 7
  • 15
1
vote
1 answer

How redirect URL to to file In Cyberpanel and OpenLitespeed

How can I redirect URL to to file In Cyberpanel and OpenLitespeed? dl.mydomain.com/vid to mydomain.com/myfile.zip I used this code inside /vide directory, but is not working RewriteEngine on RewriteCond %{HTTP_HOST} ^dl\.mydomain\.com$…
AmiR HN
  • 45
  • 1
  • 6
1
vote
2 answers

One Redirect for https, www, no trailing slash with Controller Page

I am trying to force all urls to https, www, no trailing slashes and ultimately direct all requests to a php controller page. Server uses LiteSpeed. I have tried this, but it does not seem to completely function as expected. It appears to handle…
user5919866
  • 69
  • 1
  • 8
1
vote
0 answers

Slow Litespeed container in docker

I installed on my computer ols-docker-env container in docker for developing wordpress/woocommerce sites on localhost. Everything works fine, but there is one problem - when I reload page it takes about 5-10 second or longer. Sometimes it's throwing…
1
vote
1 answer

GT Metrix show Errors even when BROWSER CACHE is active?

1-Serve static assets with an efficient cache policy There are lots of .mp4/woff/woff2/png files that have no CACHE TTL or just 1week ttl https://prnt.sc/AhbiAm19HjzU but in my .htaccess file I see these : A315576000 means 180 days to expire ###…
av_admin
  • 35
  • 5
1
vote
2 answers

minify , defer and speed up the slider revolution js css files in wordpress

I'm using the slider revolution plugin in my site I tried to speed up my site but becuse of slider revolution the score is aroung 60 in gtmetrix asked several times from the auhotrs and they did noting for... I'm using Litespeed webserver and…
1
vote
1 answer

.htaccess rewrite requests to a subdirectory if they exist, otherwise redirect to a subdomain

I want something very specific to happen with my .htaccess file, but I'm not sure if it's possible. I want links like example.com/ExampleFile.txt to be forwarded to example.com/Other/ExampleFile.txt (as I'm about to move everything into the "Other"…
Ryder Cragie
  • 145
  • 1
  • 9
1
vote
1 answer

Get real ip with Openlitespeed as webserver with a reverse proxy in front of our Openlitespeed webservers

My issue is that I can get the real IP address from the client when I am using the openlitespeed webserver with a reversed proxy in front of my openlitespeed serveres. We have the ssl termination on the openlitespeed web serveres and NOT on the…
Christian
  • 57
  • 2