C
C
chrome1232015-04-20 18:50:23
Nginx
chrome123, 2015-04-20 18:50:23

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

1 answer(s)
C
chrome123, 2015-04-21
@chrome123

I reinstalled the server without nginx and everything worked fine. Maybe someone will tell you a good manual for installing and configuring nginx so that it would send static pages and Apache would process PHP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question