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?
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?