Rewrite issues

Discussion in 'Install/Configuration' started by comixfreak, Aug 12, 2017.

  1. comixfreak

    comixfreak New Member

    So I am having two rewrite issues.

    The first is pertaining to my Wordpress install .htaccess file. The site has LSWS cache plugin installed as well.

    2017-08-12 15:14:29.447 ERROR Invalid rewrite directive: CacheLookup Public on
    2017-08-12 15:14:29.447 ERROR Invalid rewrite directive: RewriteBase /

    The second is me trying to limit access to my /phpmyadmin. I have done this numerous times with Apache and no issues, but this is my first install and use of Litespeed.

    2017-08-12 15:14:29.447 ERROR Invalid rewrite directive: AuthType Basic
    2017-08-12 15:14:29.447 ERROR Invalid rewrite directive: AuthName "Restricted Files"
    2017-08-12 15:14:29.447 ERROR Invalid rewrite directive: AuthUserFile /etc/phpmyadmin/.htpasswd
    2017-08-12 15:14:29.447 ERROR Invalid rewrite directive: Require valid-user

    Let me know what else you need me to provide. Thanks!
     
  2. NiteWave

    NiteWave Administrator

    all these directive looks valid.
    can you attach or post the whole .htaccess here, let's see where the problem is.
     
  3. comixfreak

    comixfreak New Member

    Wordpress .htaccess
    Code:
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup Public on
    
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker LOGIN COOKIE start ###
    RewriteRule .? - [E="Cache-Vary:wp-postpass_014a556846cb00706ca0042cdad81ae9"]
    ### marker LOGIN COOKIE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    Phpmyadmin .htaccess
    Code:
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /etc/phpmyadmin/.htpasswd
    Require valid-user
     
  4. mistwang

    mistwang LiteSpeed Staff

    You must be using OpenLiteSpeed, those directives are not supported in .htaccess with OpenLiteSpeed.
     

Share This Page