Migrate Apache2 htaccess to Litespeed

Discussion in 'Install/Configuration' started by sibrows, May 21, 2018.

  1. sibrows

    sibrows New Member

    Hallo, im so newbie in Litespeed, usually i use nginx and apache, so i have problem when my web hosting migrate to litespeed, here bellow is my .htaccess on apache2:
    Code:
    RewriteEngine on
    RewriteCond $1 !^(index\.php|home\.txt)
    RewriteRule ^admin/ index.php/admin/index/admin/
    RewriteRule ^admin index.php/admin/index/admin/
    RewriteRule ^adminout/ index.php/admin/index/adminout/
    
    RewriteCond %{HTTPS} off
    # First rewrite to HTTPS:
    # Don't put www. here. If it is already there it will be included, if not
    # the subsequent rule will catch it.
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # Now, rewrite any request to the wrong domain to use www.
    # [NC] is a case-insensitive match
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    Please help,

    Thanks
     
    Last edited by a moderator: May 21, 2018
  2. Tishu

    Tishu Well-Known Member

    Hello,

    Can you tell is what is not working on Litespeed?
     

Share This Page