.htaccess

  1. C

    Custom ErrorDocument is Ignored

    Hello, my shared hosting started using LiteSpeed v8.0.1 Cloudlinux 1.3 recently and I am having issues with my custom 403 page. When I browse this link it should redirect to my custom 403 page (I am using example domain for this thread): https://example.com/electronics/etc/passwd, but it shows...
  2. O

    RewriteRules do not inherit correctly?

    Hello, We're setting up new shared hostingservers with Litespeed Enterprise on CloudLinux8 with Plesk Obsidian. In this setup, Litespeed should (and does) natively support and parse all the Apache configurations used by plesk. This works fine, except for the fact that RewriteRules do not seem...
  3. Ryder Cragie

    (NOW FIXED)

    I have hosting set up on a wildcard on my domain (*.example.com) and I would like to have the following type of redirect: whatever-the-user-types-here.example.com > example.com/whatever-the-user-types-here Does anyone know the code for this please? This would make my day if someone could help...
  4. H

    .htaccess files not being used

    I have the following folder structure domain.com (/public_html/) sub.domain.com (/public_html/sub/) sub.domain.com/dir1/ (/public_html/sub/dir1/) sub.domain.com/dir1/dir2/ (/public_html/sub/dir1/dir2/) if I put the following in...
  5. N

    Drupal broken images

    My problem is that drupal web site can not create image styles so i can not preview any image in the web site. The images look broken. I cahnged the file permision to 777, then 775 i tried almost every way but couldn't solve my problem. I think there is rewrite problem but i couldn' find...
  6. R

    Setting X-Download-Options: noopen - htaccess

    Hi there, It seems that Litespeed doesn't natively set X-Download-Options: noopen. It also appears that it doesn't respect/support the option when it is declared in the .htaccess file. Is there an option to enable support for it?
  7. A

    403 after making changes .htaccess/Rewrite

    Dear All, Need your kind help to get it resolved, it was all fine i was trying to activate ReWrite activated made a few changes in .htaccess but unfortunately, it started 403 following is the log plz help. TimeLevelMessage 2020-08-15 00:49:25.459112NOTICE [testAndFixDirs]...
  8. beniking

    How to config LsCache for prestashop

    I enable " Check Public Cache > Yes" then install and enable Prestashop cache module in website, finally add this code to .htaccess <IfModule LiteSpeed> CacheEnable public RewriteEngine On RewriteCond %{REQUEST_METHOD} ^GET|HEAD|PURGE$ RewriteCond %{HTTP_HOST} ^DOMAIN.COM [NC]...
  9. P

    htaccess configuration issue

    On my .htaccess, I have something like this RewriteRule ^([a-zA-Z0-9.-]+)/([a-zA-Z0-9.-]+)/good-world/?$ /good-earth.php?product=$1&pid=$2[L] Although the script load, however for an unknown reason, it does not work properly again. I think the PHP file_get_contents does not work Also, I have a...
  10. V

    .htaccess files on virtual server folders not read

    Hi, I noticed that one website installation to subfolder failed because seems that litespeed reads the main server level .haccess files but not the ones in file folders in virtualhost. Log revealed nothing.
  11. F

    Rewrite from http and www to https://non-www

    My goal is to redirect all http and www URLs to https://non-www To this end, I have written the following lines to .htaccess: RewriteEngine on RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^(.*)$...
  12. M

    .htaccess Isseus

    Hello, I can not solve canonical issues through .htaccess in litespeed web server. My website home page are https://www.printsdiv.com/ https://printsdiv.com/ https://www.printsdiv.com/home I put this code on .htaccess RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI}...
  13. K

    Still Do I need to Put 301 Redirection Code in .htaccess File?

    Hello, I am new to the forum. I have no enough privileges to Post and Comment on other section, So I posted here, If this is wrong, MOD Please Consider this as a new member. I am using the latest LiteSpeed WP Plugin, I enabled this Option "Improve HTTP/HTTPS Compatibility". Still, do I need...
  14. J

    .htaccess redirects won't all work on Lite Speed

    Hi all, Have spent 3 days trying to get all url redirects to HTTPS to work but no matter what i try i cant get all urls to redirect to https://www.domain.com have looked high and low and tried 100 different ways without luck. Any help would be great! http://www.domain.com to...
Top