I have been trying to solve this for more than two hours. I have a personal site that uses .htaccess to manage URLs. It looks like this:
RewriteEngine on RewriteBase / ... RewriteRule ^sklad/?$ index.php?action=sklad RewriteRule ^sklad/user/([0-9]+)?$ index.php?action=sklad&user=$1 RewriteRule ^sklad/folder/(.+)?$ index.php?action=sklad&folder=$1 RewriteRule ^sklad/file/(.+)?$ engine/ajax/sklad.php?file=$1 RewriteRule ^sklad/logout/?$ index.php?action=sklad&op=logout ... RewriteRule ^admin/?$ admin.php RewriteRule ^admin/news/?$ admin.php?action=news
the first five work fine. admin / works fine. But when I try to access admin / news / , I get a blank page. Errors are not displayed or reported by Apache and are not displayed. admin.php? action = news is working fine.
Both the sklad / and admin / folders physically exist on the server. BUT , when I rename the admin / folder to something else OR , change the last RewriteRule to something like
RewriteRule ^admin123/news/?$ admin.php?action=news
I can access admin123 / news / . If this has anything to do with the actual folder existing on the server, then why do the first five rules work? It does not make sense.
I have no ideas, hope someone here helps ...
source share