Вот мой код htaccess.Он работает с Apache, но с Litespeed не работает нормально.Я хочу, чтобы все html и php файлы были в index.php, но в Litespeed
/example *works, there is no file which named example*
/folder/example.php *works, there are folder and example.php*
/folder/index.php *works, there are folder and index.php*
/folder/ *doesn't works, there is folder and there is index.php in this folder but its not redirect to main index*
, поэтому /folder/index.php работает, / folder / не работает.но это одни и те же вещи.Папка htaccess не понимает, это файл php в Litespeed.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([A-Za-z0-9-\s]+)/?$ index.php?url=$1 [NC,L,QSA]
RewriteRule ^(.*?\.(?:html?|php))$ index.php?url=$1 [QSA,L,NC]