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

  • SEARCH
  • Home
  • 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 9038379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:28:32+00:00 2026-06-16T09:28:32+00:00

I suspect this may be a webserver configuration change that has taken place, and

  • 0

I suspect this may be a webserver configuration change that has taken place, and my hosting provider hasn’t told anyone, but anyway…

I have a Codeigniter instance set up with the following directory structure:

/root
   /codeigniter
        /app
        /sys
   /www
        /sandbox
            /ci
                /js
                /css
                /img
                .htaccess
                index.php

Therefore in index.php, I have the following variables:

$application_folder = '../../../codeigniter/app';
$system_path = '../../../codeigniter/sys';

These are relative definitions due to it being a shared hosting provider, however it does appear to be working that way so I don’t think this is the issue (in WAMP i have those folder paths explicitly defined, e.g. c:/wamp/ci/application)

In config.php, I have the following variables set:

$config['base_url'] = 'http://******.co.uk/sandbox/ci/';
...
$config['index_page'] = '';
...
$config['uri_protocol'] = 'AUTO';

and my .htaccess file in www/sandbox/ci is set like so:

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

Up until a few days ago, this all worked fine, however, I replaced a fair few files just before Christmas, and may have accidentally overwritten something without realising it. This setup works fine on my WAMP server, but fails on my live server If I attempt to access any function in any controller that isn’t the one defined in routes.php.

My routes.php looks like this:

$route['default_controller'] = "home_controller";
$route['404_override'] = '';

home_controller appears fine, however if I attempt to do something like login (which is processed via a form POST to auth_controller/login), it fails with 404. I do not have any additional functions in home_controller.

I get nothing interesting from setting the logging threshold to 4, and ChromePHP just suggests that it cannot find a path to the controllers.

mod_rewrite seems to be working, because if I add anything plaintext to the .htaccess file, I get a server error 500, and furthermore the index.php rewrite is working. I also have rewrite_short_tags set to TRUE.

I have tried all of the uri_protocol types in the config.php, and none seem to make any difference, so I feel like if it is something i’ve done, i’m either missing something from routes.php, or something missing from my .htaccess.

Any thoughts would be appreciated. Like I said, this entire setup works on my WAMP server without issue.

  • 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-16T09:28:33+00:00Added an answer on June 16, 2026 at 9:28 am

    I think the problem is in your htaccess. Try this htaccess for a moment..

    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    # Set the rewritebase to your CI installation folder
    RewriteBase /sandbox/ci/
    
    
    # Send everything to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    
    </IfModule> 
    

    I hope this helps you out.

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

Sidebar

Related Questions

We're using code that we've used before, so I suspect that this may be
I have an issue in my SharePoint environment and I suspect that this code
Apologies in advance, because I suspect this may be a silly question. I have
This may be a stupid question, I suspect I know the answer (no) because
I suspect this applies to general ASP.Net too but I am not sure. If
I suspect this is impossible, but thought I'd ask. Say I have a class
I am new to both DBs and Rails (using 3.2), and I suspect this
I suspect I am going to feel really stupid after posting this but here
One day I suspect I'll have to learn hadoop and transfer all this data
I suspect that I am trying to bend a QWizardPage to do more than

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.