I was having trouble deploying my site. My Angular partials were receiving a 404 error but my index.php template was loading fine. This was my .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
I found the solution here: Codeigniter - no input file specified
It was to add a ?
after index.php
.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
I have a basic understanding of .htaccess but I can seem to find an explanation for this.
Thanks.