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 4033788
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:53:26+00:00 2026-05-20T11:53:26+00:00

maybe you can help me out here. I have an issue with my codeigniter

  • 0

maybe you can help me out here. I have an issue with my codeigniter setup. It’s a fresh install and all I’ve done is this to the welcome controller:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

    function __construct()
    {
        parent::__construct();
    }

    function index()
    {
        $this->load->view('welcome_message');
    }

    function test()
    {
        echo "test";
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

other than that, everything is out of the box. Here is my .htaccess file that I am using:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase / 
    RewriteEngine on

    RewriteCond %{QUERY_STRING} callback
    RewriteRule (.*)  /$1? [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
    # 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
</IfModule>

Can’t remember where I got this from, but it’s working on other versions of codeigniter. so right now, when I got to this url:

http://myurl.com/welcome/index

the pages comes up fine, but when I got to this url, I get:

http://myurl.com/welcome/test

I get page not found. For some reason it seems that I need to load a view file for the page to be found. I’ve done multiple ci installations, and this is the first time I’ve had so many issues.

The reason why I need echo to work like this is because I use it to spit out lots of information using print_r, so I don’t always use a controller. I have another problem with this installation, but that’s for another question.

thanks guys!

Update

What’s really odd about this issue is that this doesn’t happen in firefox, but it happens in ie and chrome. I’ve never seen anything like this before.

update

Unfortunately I read the error wrong… doh! When I hit the welcome/test, I get an “Oops! This link appears to be broken.”, not a 404 error. And on ie I get the

The webpage cannot be found HTTP 404
Most likely causes: •There might be a
typing error in the address. •If you
clicked on a link, it may be out of
date.
What you can try:
Retype the address.

 Go back to the previous page. 

 Go to  and look for the information you want.  

 More information 

This error (HTTP 404 Not Found) means
that Internet Explorer was able to
connect to the website, but the page
you wanted was not found. It’s
possible that the webpage is
temporarily unavailable.
Alternatively, the website might have
changed or removed the webpage. For
more information about HTTP errors,
see Help.

If I try to hit a page that doesn’t exist, I get 404 errors which is what I expect.

  • 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-05-20T11:53:27+00:00Added an answer on May 20, 2026 at 11:53 am

    Hey Johnathan, I’m glad I got to fix your problem. All you had to do was enable apache’s mod rewrite.

    a2enmod rewrite /etc/init.d/apache2
    reload
    

    Because you didn’t have apache’s mod rewrite, code igniter must have screwed up some rewrite rules and messed up your form data on post back.

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

Sidebar

Related Questions

I have a little dilemma that maybe you can help me sort out. I've
Maybe this cannot be done, but please help or suggest how this can be
Maybe you can help me... I am writing a program in Windows Mobile that
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
This is baffling me, maybe somebody can shine the light of education on my
This maybe a stupid question, but as I can not easily undo my change
I know this maybe a basic question but I just can't seem to find
If I have sequence of sequences (maybe a list of tuples) I can use
I've done some Googling, and can't find anything, though maybe I'm just looking in
Here is my issue, it appears that all the communication lines for the PIC

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.