Apache does not use mod_rewrite.c

So, I just installed the linode server with debian, apache, etc., and now I'm trying to get the application that I am developing, but it requires mod_rewrite.c . Therefore, of course, I went to the application directory (if it matters in PHP, if it matters) and created .htaccess with this inside it:

 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php </IfModule> 

So they went to my domain, example.com/hello , and he gave me a 404 error when he should show me the contents that index.php loads. Is there a reason mod_rewrite.c not working?

+4
source share
1 answer

Is the module included in / etc / apache2 / mods?

+8
source

All Articles