Mod_Rewrite SiberianCMS

Discussion in 'General OpenLiteSpeed Discussion' started by Vanhels, Sep 20, 2017.

  1. Vanhels

    Vanhels New Member

    Hi, i would like to install SiberianCMS, config virtualhost:

    VirtualHost:

    <Directory [/path/to/siberiancms]>
    Options Indexes FollowSymLinks
    AllowOverride all
    </Directory>

    .htaccess:

    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

    RewriteRule ^(.*)$ index.php [NC,L]

    </IfModule>

    How could you configure this in OpenLiteSpeed

    Regards,
     
  2. Pong

    Pong Administrator

    openlitespeed doesn't support .htaccess, you can simple copy the rewrites rules ( rewrite rules only, nothing else ) to the virtual host rewrite section in OpenLiteSpeed Admin Console.

    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

    RewriteRule ^(.*)$ index.php [NC,L]
     

Share This Page