I have been developing a CodeIgniter app in XAMPP on Windows 7. The app functions as expected locally but when uploaded it doesn't.
The default controller (ShowStadium) has the following methods: - index() - show()
index is loaded fine when called via the basepath, but neither loads when called directly:
/pathToApp/ShowStadium/ or /pathToApp/ShowStadium/index or pathToApp/ShowStadium/show
The error received is the Codeigniter 404 message.
The codeigniter instance is currently located in 2 subfolders. My .htaccess file:
RewriteEngine On
# Put your installation directory here:
# If your URL is www.example.com/, use /
# If your URL is www.example.com/site_folder/, use /site_folder/
RewriteBase /proj/groundtweet/
# Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# For reuests that are not actual files or directories,
# Rewrite to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]
Things I have tried:
- The controller files are all lower case.
- The base path is correct both installations.
- Tried the various uri_protocol options
- index.php has been removed from the path.
Any help would be appreciated, because I can't find an answer to this problem specifically and it's frustrating in it's probable simplicity.
Apologies if I've missed any details here.
Thanks.