my htaccess file looks like this:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
But when I try to do anything on the website only the main website works ok. If I want to go to login page I'm getting an error:
No input file specified.
But if I change the .htaccess file to:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
The subpages work, but then I have trouble with the theme...
--> 404 Page Not Found: Themes/default
Anyone have any idea to what should I change the htaccess file that the page would work. I'm using CodeIgniter.
OK, I've changed the .htaccess to:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/?$1 [L,QSA]
Added ? before the $ sign and now the page loads ok. But now I have another problem with the theme.
ERROR - 2017-09-11 06:43:40 --> 404 Page Not Found: Themes/default
Also fix this: Must be the right directory path inside the config file.