Please help, how to convert such Nginx rewrite into OpenLiteSpeed rules?

    Now I have an Nginx rewrite rule that cannot be successfully transferred to OpenLiteSpeed for use. Please help: rewrite ^/timthumb/w_([0-9]+)/h_([0-9]+)/q_([0-9]+)/zc_([0-9])/a_([a-z]+)/([0-9A-Za-z_\-]+)\.([0-9a-z]+)$...
  2. T

    How to redirect “http:// serverip:8090” to “https://hostname :8090”

    Hello everyone, As we all know, we have 2 ways to access cyberpanel, server ip and hostname. Since the url "http://serverip:8090" is not safe, I worry someone will use it to do bad things. So, I would like to redirect “http://serverip:8090” to "https://hostname :8090”. Can any friend...
  3. L

    wordpress generated .htaccess doesn't work

    I have migrated wordpress website for my client to VPS with Cyberpanel, but I have issue with .htaccess that doesn't work. I checked in multiple configurations but not much worked. Could somebody help me? My .htaccess file content: ``` # BEGIN WP Rocket v3.11.3 # Use UTF-8 encoding for anything...
  4. richardevcom

    Redirect all subdomains but one with specific port

    Hi there. I'm looking to redirect all subdomains but one with specific 6789 port to be redirected to for the Web Admin. So if I visit I get redirected to Is there an option to add Rewrite...
  5. S

    Rewrite Rules (Disabled by CyberPanel)

    Hi, I'm trying to configure my VHost Template via OLS web panel but met this: Rewrite Rules (Disabled by CyberPanel). Why and how it's disabled and how to enable it? Grateful for the advice or some direction...
  6. maicol07

    Apache Rewrite Rules not working

    Hi, I'm trying to install XBackBone and it has the following rewrite rules in its .htaccess: Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(app|bin|bootstrap|resources|storage|vendor|logs|*|)$ - [NC,F] RewriteCond %{REQUEST_FILENAME} !-f...
  7. F

    Some of the rules .htaccess does not work

    Rules for on-the-fly image resizing for Simpla CMS do not work. Here is my code: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/files/products/(.+) resize/resize.php?file=$1&token=%{QUERY_STRING} #RewriteCond %{THE_REQUEST} ^GET\...
  8. P

    .htaccess not loading on subdirectory (2 levels)

    Hello guys, how are you? =) I'm working on hundreds of OLS installations for a managed cloud hosting, and I started to notice a common problem: If I have the following dir structure, the last .htaccess doesn't get read: /srv/user/www/.htaccess /srv/user/www/dir1/.htaccess...
  9. S

    Rewrite Map config appears in Rewrite Rules once saved

    v1.4.30. When I add something to the Rewrite Map field and save it, appears in Rewrite Rules section. I guess this is happening because the rewrite rules are not being saved in correct format?
  10. S

    rewrite Rules creates malformed config

    v1.4.30. In admin panel, Virtual Host > Rewrite, when I add Rewrite Rules, it creates malformed rules in vhconf.conf. For example, when I add "rewriteFile /vagrant/.htaccess" to the admin ui interface and save, then it creates: rewrite { enable 1 logLevel...
  11. A

    Context help needed

    I've recently installed OpenLiteSpeed and have been trying to transfer everything over from a shared host. I'm trying to turn my .htaccess files into working contexts but haven't been able to work out how to do so, if I visit my website it always returns a 404. Is anyone able to point me in the...
  12. tjk

    Moving from nginx, have some questions

    Hey All, Coming from the nginx world, I've been playing with OLS due to the faster php processing. Two questions: 1. One of the apps I am testing, uses a .htaccess in a ton of directories that simply has "deny from all" in it. Where/what is the proper way through OLS to protect these...
  13. Mohsen Ghiasi

    How to block access to xmlrpc.php file?

    Hello I use this code in httpd.conf to block access to xmlrpc.php file that kills many wordpress based websites every day ;-) <FilesMatch "^(xmlrpc\.php|wp-trackback\.php)"> Order Deny,Allow Deny from all </FilesMatch> Is it possible to add a rewrite rule to block access to some files like...