CodeIgniter Forums
URGENT! Installation in folders - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: URGENT! Installation in folders (/showthread.php?tid=5957)



URGENT! Installation in folders - El Forum - 02-09-2008

[eluser]manilodisan[/eluser]
I've done a basic installation on one of my cleint's ftp on a subfolder, not on the root folder and the app. shows a 404. Why? The default controller is not found.


URGENT! Installation in folders - El Forum - 02-09-2008

[eluser]Rick Jolly[/eluser]
Could be that you're redirecting to the root directory in your htaccess. See below:
Code:
RewriteEngine On
# do you have RewriteBase set to a subdir or is the subdir prefixing the index.php/$1?
RewriteBase /your_subdirectory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
    
RewriteRule ^(.*)$  index.php/$1 [L]

What is your base_url set to?


URGENT! Installation in folders - El Forum - 02-09-2008

[eluser]manilodisan[/eluser]
That's the problem. I don't use a htaccess and this is not isolated. Another client had to purchase a domain for this installation because the subfolder was giving a 404.


URGENT! Installation in folders - El Forum - 02-09-2008

[eluser]manilodisan[/eluser]
If Iuse the .htaccess I get another error: No input file specified/.


URGENT! Installation in folders - El Forum - 02-09-2008

[eluser]manilodisan[/eluser]
I had to change $config['uri_protocol'] = "AUTO"; to $config['uri_protocol'] = "REQUEST_URI";