295 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
2
replies
52
views
Best way to load a custom JS file only on WooCommerce product pages with a block theme (FSE), not want killing full-page cache?
Please read full first
I’m working on a WooCommerce shop using Twenty Twenty-Five as a child block theme (full site editing). I have a small custom script (product.js) that should only run on single ...
0
votes
1
answer
222
views
WordPress Admin Bar Not Showing on Frontend When Logged In (After Enabling LiteSpeed Plugin and Hostinger CDN)
I'm having an issue with my WordPress site where the admin bar no longer appears when I'm logged in and viewing the frontend of the website. The space where the bar should be is still there (you can ...
-1
votes
1
answer
65
views
I can't zip symbolic linked files with PHP
I have a cPanel Linux server running LiteSpeed Web Server. There are constant photo uploads on a hosting on this server. However, the site is growing a little more every day and I am having problems ...
0
votes
1
answer
92
views
htaccess rewrite rule 401
I have this inserted in my htaccess file on a WordPress installation
RewriteRule wp-content/plugins/(.*\.php)$ - [R=404,L]
I am using LSCWP and I want to try the guest mode.
For that I need access to ...
1
vote
0
answers
41
views
Command getppid() takes 1 second each execution
I am trying to solve the high CPU issue, when tracing one of lsphp process, I see the command getppid() take more than 1 second each execution. See trace log below:
strace: Process 21945 attached
...
0
votes
0
answers
36
views
PDF uploaded within a folder downloads when viewed on phone browser - I want to change that to View
Noticed that when I click on a direct link to a PDF (mysite.com/resource/flyer.pdf) on my phone it downloads and then gives an option to view (Would you like to open the downloaded file?) instead of ...
-1
votes
1
answer
764
views
How to protect .env file [closed]
I've hosted a node js app on cpanel as example.com but the problem is in my node directory having .env file and if I try to visit example.com/.env this file get downloaded. So how to secure .env file?
...
0
votes
1
answer
423
views
apache behind cloudflare proxy not serving the mp4 file with status code 206
The mp4 video file is hosted on Capnel's apache server behind the cloudflare proxy. the file is loading on non-apple devices browser but not loading on apple's safari and other browser.
The reason of ...
1
vote
0
answers
173
views
Litespeed cache purge for specific pages
I've implemented a custom functionality in WordPress to automatically set alert banners (custom_alert post type) to 'draft' status upon expiration, using a custom field alert_expiration_date. When an ...
1
vote
1
answer
140
views
Redirect to canonical domain
I'm trying to set up a rule so requests coming from alternative domains are redirected to canonical domain, keeping request path and query string intact. I need to use .htaccess because it's a shared ...
0
votes
0
answers
276
views
Block all IPs on website except cloudflare
I'm using LiteSpeed Webserver on cPanel. I want to block all IPs except Cloudflare IP ranges.
This is my code (in my .htaccess file), however, it always results in a 403 forbidden error even when i'm ...
0
votes
0
answers
66
views
How to Redirect Subdirectory to Parent Directory .htaccess
For quite a while, I've been observing the 404 error log file, and I found that from nowhere, the visitors landed in subdirectories containing numbers that don't exist. And there are more than 50% ...
0
votes
0
answers
86
views
.htaccess Auth for Staging site on a subdomain
i am doing a WordPress staging site on a subdomain with a LiteSpeed server before put online.
I apologize but i have some questions.
Can i use the Auth of .htaccess to Hide the staging site? Are the ...
0
votes
1
answer
742
views
SSL Configuration Issue with Multiple Virtual Hosts in OpenLiteSpeed
I’m having trouble configuring SSL for two virtual hosts on an OpenLiteSpeed server. I have set up two virtual hosts, each with its own SSL certificate. My listener on port 443 has the ‘Secure’ field ...
0
votes
1
answer
2k
views
Exclude the header of my web page created with Elementor from the LiteSpeed Cache optimization plugin
Due to the optimization of the CSS files with the LiteSpeed Cache plugin, my Elementor header appears deformed, how do I find the CSS class to be able to exclude the header from the Lite Speed ...