Попытался добавить в файл конфигурации
D:\openserver\OSPanel\userdata\config\Apache_2.4-PHP_7.0-7.1_server.conf
Заменив строку
<Directory "%ssitedir%/*"> AllowOverride All # Options -FollowSymLinks +SymLinksIfOwnerMatch Options -MultiViews +Indexes +FollowSymLinks +IncludesNoExec +Includes +ExecCGI Require all granted </Directory>на
<Directory "%ssitedir%/*"> AllowOverride All # Options -FollowSymLinks +SymLinksIfOwnerMatch Options -MultiViews +Indexes +FollowSymLinks +IncludesNoExec +Includes +ExecCGI Require all granted <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*)/index\.php(.*)$ RewriteRule %{REQUEST_URI} ^(.*)/index\.php$ [R=301,L] </IfModule> </Directory>Но попрежнему запросы из на страницы подкаталогов идут на страницы внутри ,а не на корневой index.php