My htaccess not working

pacoi

New Member
#1
im migrating from apache to openlitespeed, and my htaccess doesn't working
please help me check my code

Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]

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

RewriteRule . index.php [L]
i tried put htaccess code on rewrite rules, i also enable rewrite and auto load from .htaccess
 

pacoi

New Member
#2
well i found the problem
openlitespeed only read htaccess from my root directory, my subfolder htaccess isnt readed as well

i already searching through google, and i found multiple problem with same as mine
i tried enabling auto load from .htaccess in server configuration and also virtual hosts as well but seems openlitespeed still not read my htaccess from my subfolder or subdirectory

my openlitespeed version is 1.6.9
and here is the screenshot of it
server.JPG
vhosts.JPG
its only read my htaccess throught rewrite rules in virtual host > rewrite
i want it to read my /admin/.htaccess aswell
 

Pong

Administrator
#3
Please place all your rewrite rule in different .htaccess , and restart OLS. no need to be in virtual host > rewrite. Only using .htaccess is fine. subfolder .htaccess should work as well. Just make sure to restart OLS once you made any change to any .htaccess to make it effective.
 
Top