Search results

  1. I

    Deny access to zip files

    Hi again, @Cold-Egg, in the future... will Openlitespeed support other rules like filematch or just rewriterules? Best regards
  2. I

    Deny access to zip files

    Hello there, I have done it! I don't know why it didn't work for me the first time, I think I didn't restart the server xD I paste the solutions here in case someone needs them in the future. There are two ways to do it: .htaccess (If there is more than one .htaccess file, put the rewriterule...
  3. I

    Deny access to zip files

    Hello everyone, I have installed Cyberpanel with OpenLiteSpeed to build my digital product store. I am using Wordpress with Easy Digital Download. This plugin will create a .htaccess file in "/wp-content/uploads/edd/" to be able to deny direct access to files, but it contains some rules that...
  4. I

    How to make a 301 redirect in OLS

    Hi again, My situation is this: Two months ago I bought the domain 'tecnologiayvideojuegos.com', but before it was mine, it was from another person who was using it. Then, in Google Search Console, I see several old URLs that are not mine and have 404 status because they do not already exist...
  5. I

    Questions about Cyberpanel, GZip and Vary Headers

    Hi Pong, Ok, as soon as I can I will log a ticket with the access data. Thank you very much for your help.
  6. I

    How to make a 301 redirect in OLS

    Hi David, I have not managed to do redirects 301 of the pages with error 404 through contexts like we talked the other day. The only way that redirects work for me, is writing 'RewriteEngine On RewriteRule /urlwith404/ https://mydomain.com [L,R=301]' in the .htaccess above 'IfModule...
  7. I

    How to make a 301 redirect in OLS

    Thank you very much David. So I will do it and I will comment here if it has worked for me.
  8. I

    How to make a 301 redirect in OLS

    They are examples of pages with status or error 404 that I want to redirect to the 'Home' of my web. It should be added to the end of each one '[L,R=301]'. I just realized that I have not put it in the previous post. Sorry. Thanks David!
  9. I

    How to make a 301 redirect in OLS

    In this case, it would be: Admin Panel Control -> Virtual Host -> Context Tab -> Add -> Type: Static URI: / Location: $VH_ROOT/html/ Accessible: Yes Enable Rewrite: Yes Rewrite Rule: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /i.html...
  10. I

    How to make a 301 redirect in OLS

    Hi David, Thanks for the info. Very good. Currently, in the 'Rewrite' tab of the Virtual Vost I have the following configuration: Enable Rewrite: Yes Rewrite Rules: rewriteFile /usr/local/lsws/TyV/html/.htaccess According to what you have written, in the 'Rewrite Rules' section I would have...
  11. I

    How to make a 301 redirect in OLS

    Hi Pong, What you have sended to me, I saw yesterday before opening this thread. That's why I managed to make redirects. But I do not understand why the redirects do not work if I try to it from a context. I do not know what goes wrong. Thanks.
  12. I

    Invalid rewrite directive

    Checked, it works! You just have to add '=' between the MIME-Type and the time, That is to say Admin Control Panel -> Virtual Host -> MyVirtualHost -> Context Tab -> Add -> Type: Static URI: / Location: $VH_ROOT/html/ Accessible: Yes Enable Expires: Yes Expires by type...
  13. I

    Invalid rewrite directive

    Hello, I also have 'Invalid rewrite directive: ExpiresByType...' in the 'Server Error Log' section. These directives are created by the LSCache pulgin in the .htaccess So, to solve it I have to create a static context with 'ExpiresByType'? That is to say: Admin Control Panel -> Virtual Host...
  14. I

    How to make a 301 redirect in OLS

    Hello, I have noticed that I have some 404 errors on my website. I have tried to fix them by putting the following instruction in the .htaccess but it does not work: Redirect 301 /urlwith404 https://mydomain.com/home Investigating through the forum, I have seen that OLS does not accept...
  15. I

    Questions about Cyberpanel, GZip and Vary Headers

    Thanks, Pong. Then I better not install Cyberpanel. If I rent another VPS in the future, I will install it from the beginning.
  16. I

    Questions about Cyberpanel, GZip and Vary Headers

    Hi, I attached the reports of GTMetrix. This is the report having GZip activated in both the server and the virtual host configuration, and LSCache disabled: https://gtmetrix.com/reports/tecnologiayvideojuegos.com/UoNsyHZY This is the report having GZip activated in both the server and the...
  17. I

    Questions about Cyberpanel, GZip and Vary Headers

    Hello again, Of course, tomorrow I send you the GTMetrix or Pingdom report. So... I can not install Cyberpanel now? If I do, would it overwrite everything I have? Thanks!
  18. I

    Questions about Cyberpanel, GZip and Vary Headers

    Hi, I have some questions about Cyberpanel, GZip Compression and Vary Header. I've noticed that if I do not activate the plug-in LiteSpeed Cache in Wordpress, the GZip and Vary headers do not appear. In fact, the tests like PageSpeed, GTMetrix and Pingdom, tell me that GZip compression is...
  19. I

    OLS Cache Module/LScache does not work

    Effectively, the initial problem has been solved. I think it's a good idea to change the name to "enable module" :) I'm sorry, I'll open a new thread. Yes, the thread can be closed. Thank you very much everyone for the help. Great team. Best regards
  20. I

    OLS Cache Module/LScache does not work

    Hi! Perfect, i'll install Cyberpanel then. Right now the web that is online is served by another server that is not OLS, and is powered by Cloudflare. I have done this because I have sent a ticket with the access data of the VPS where I have installed OLS so that they check because the cache...
Top