The default .htaccess is
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/ [QSA,PT,L]
</IfModule>
At this time, visit http://mydomain.me/home/index... and directly report the error Failed to load resource: the server responded with a status of 404 (Not Found) as shown below
After adding index.php, http://mydomain.me/index.php/..., the page can be accessed, but the error is reported as shown below
After modifying .htaccess, it can be accessed without index.php, but an error is still reported, the same as the picture above.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=/ [QSA,PT,L]
</IfModule>
What is the reason? How to break it?
Thank you all.
I found out the reason myself. Pay attention to strict case sensitivity in Linux.
Made a stupid mistake.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Try this and try removing the IF ones.