Article 6M9D8 mod_rewrite or .htaccess not working

mod_rewrite or .htaccess not working

by
lq_win
from LinuxQuestions.org on (#6M9D8)
Hi There,

I have enabled mod_rewrite and make sure the following:

httpd -M | grep rewrite
rewrite_module (shared)

and my .htaccess in /var/www/html/test

RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1

current condition:

when I browse to https://apps.example.com/test --> it goes to https://apps.example.com/test/auth/login and returns 404

what I missed?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments