Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8597819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:00:09+00:00 2026-06-12T01:00:09+00:00

I have a CodeIgniter installation on my local machine. I used hosts file in

  • 0

I have a CodeIgniter installation on my local machine. I used hosts file in Windows and Apache config to make it work under my real domain name (eg. site.com). It worked great, so today I uploaded everything to my host. I changed hosts and Apache config, flushed DNS via ipconfig /flushdns and now entering certain URLs (games) gives me 404.

My controller name starts with uppercase but I have routes set like this:

$route['Games/(:num)/(:any)'] = 'Games/Game/$1';
$route['games/(:num)/(:any)'] = 'Games/Game/$1';

Either entering this by games/14/game or Games/14/game doesn’t work.

Searching for images (using solution given by merahulpk) doesn’t work also.

What can it be?

Unfortunately, it’s still under development, so I can’t give you the aaddess just yet.

— edit —

Image inclusion script:

views/game.php

<?php
    $image_path = $this->config->item('base_path').'images/games/'.$info['id'].'-s.jpg';
    if(file_exists($image_path)) {
        $small = $this->config->item('base_url').'images/games/'.$info['id'].'-s.jpg';
        $big = $this->config->item('base_url').'images/games/'.$info['id'].'-b.jpg';
    } else {
        $small = $this->config->item('base_url').'images/games/none-m.png';
        $big = $this->config->item('base_url').'images/games/none-m.png';
    }
?>

config/sit-config.php

<?php

$config['base_url'] = "http://".$_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);

if(!defined('DOCUMENT_ROOT')) define('DOCUMENT_ROOT',str_replace('system/application/config','',substr(__FILE__, 0, strrpos(__FILE__, '/'))));

$config['base_path']    =   constant("DOCUMENT_ROOT");
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:00:12+00:00Added an answer on June 12, 2026 at 1:00 am

    Don’t use uppercase letters in your routes. Use all lowercase like this:

    $route['games/(:num)/(:any)'] = 'games/game/$1';
    

    Routes won’t work if you use uppercase controller name. As for method names, they can be either lowercase of uppercase, both will work… no need for duplicate routes!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a codeigniter code that is working on local Apache installation. But it
I cannot work this out to save my life! So, I have a Codeigniter
I have a codeigniter project structured as so: httpdocs/ /application/ /ggg/ config/ controllers/ models/
Let's say that we have a Codeigniter installation and the way to access that
I have an installation of CodeIgniter. Basically, my directory structure looks like this: |
I have a standard Codeigniter installation but can't seem to get MNPP (MySQL+Nginx+PHP+Python) to
For Security reasons as mentioned here http://codeigniter.com/user_guide/installation/index.html I have placed the system and application
I have CodeIgniter without /index.php/ URL and i want to link CSS file in
In codeigniter I have used codeigniter form validation library in many controller, ex: -
My intention here is to have a codeigniter app with a blog under the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.