Answer the question
In order to leave comments, you need to log in
Why does Apache not fully implement .htaccess?
When migrating a site from Windows to Debian, I encountered the following problem.
Created a .htaccess file
with the following content
RewriteEngine on
RewriteRule ^home(/?)+$ index.php [L] - this command is executed when you go to http://Site_name/home The index.php file is executed
RewriteRule ^r(/?) +$ r.php [L] - here already http://SiteName/r gives 404 error
ErrorDocument 404 /404.html - This also works fine
What could be the reason? Attempts to completely restart the server did not lead to anything.
architecture is the following. Although it may not be that important. apache+nginx where nginx sends static pages and apache works with php.
I also want to note that everything worked on Windows (localhost)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question