Why does not work like this (gives 404)
RewriteRule ^(company)/services/$ /company/branches.php [L] Rename the company folder to company2. I do so.
RewriteRule ^(company)/services/$ /company2/branches.php [L] And for the same link ( example.dev/company/services/ ) everything works fine. Not the first time already such a problem. Terribly annoying. What can you do about it?
Additional information: Xdebug showed that there is no request to the /company/branches.php file at all. He immediately goes to show page 404. There are rights to read. No redirects occur.
And it behaves as if the files in this folder do not exist at all ... What could it be at all?
PS Ubuntu 16.04
(company), how does it behave? - VismanRewriteRule ^(company)/services2/$ /company/branches.php [L]And go to the link company / services2 / everything will work. And on one server, under debian, it works fine, but on the other under ubuntu, he does not want to display anything - Vitaly Zaslavsky