Welcome Guest, Not a member yet? Register   Sign In
urgent !!!!!!:: Modular Extensions - HMVC wiredesignz 404 page not found issue
#1

[eluser]ashish64[/eluser]
guys,
this is killing me >Sad

what do i have?
CI version: 2.1.4
Modular Extensions - HMVC by wiredesignz
a basic codeigniter(hmvc) project that works fine with the setting it has in local server(mamp) with php 5.5.3

my problem
after i move the project to public web server i changed the following things.
----application/config/config.php
Code:
$config['base_url'] = 'http://example.com/';

----application/config/database.php
Code:
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'newdbusername';
$db['default']['password'] = 'newdbpassword;
$db['default']['database'] = 'newdbname';

---public_html/.htaccess
Code:
RewriteEngine On
RewriteBase /

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]    
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php

since my index page will be the index function of 'home' module, i have not touched routes.php file in application/config folder. below is the settings for routes.php

Code:
$route['default_controller'] = "home";
$route['404_override'] = '';

THE PROBLEM
whenever try to access http://example.com/ i get the message below
Quote:404 Page Not Found

The page you requested was not found.
i get same message if i try http://example.com/home
but http://example.com/welcome still gives welcome to codeigniter page

WHAT IS GOING ON!!!???
why cant i access any of my page from modules??
what have i missed??
is anyone else getting this problem??

ps: my cpanel has php 5.3.27 if that helps
#2

[eluser]Unknown[/eluser]
Try this in .htaccess file


RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
#3

[eluser]ashish64[/eluser]
[quote author="phonesouphanh" date="1391446526"]Try this in .htaccess file


RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
[/quote]

made the changes but still no luck.

Sad
#4

[eluser]ashish64[/eluser]
Finally the problem was solved.
this was my folder structure in modules folder.

--modules/
----------/home
----------------/Controllers----->home.php
----------------/Models----->mdl_home.php
----------------/Views----->viewfile.php

all i had to do was change the capitalization on "Controllers", "Models" and "Views" and i was back in business.

now the folder structure is like this and its working perfectly

--modules/
----------/home
----------------/controllers----->home.php
----------------/models----->mdl_home.php
----------------/views----->viewfile.php

Ashish
#5

[eluser]Unknown[/eluser]
Hello,

my problem is the same as ashish64, however the error message displayed is not the 404, but "An Error Was Encountered. Unable to load your default controller. Please make sure the controller specified in your routes.php file is valid."

Can anyone help me?




Theme © iAndrew 2016 - Forum software by © MyBB