Note that there are some explanatory texts on larger screens.

plurals
  1. POpage not found on codeigeniter
    primarykey
    data
    text
    <p>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:</p> <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Welcome extends CI_Controller { function __construct() { parent::__construct(); } function index() { $this-&gt;load-&gt;view('welcome_message'); } function test() { echo "test"; } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */ </code></pre> <p>other than that, everything is out of the box. Here is my .htaccess file that I am using:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; 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] &lt;/IfModule&gt; &lt;IfModule !mod_rewrite.c&gt; # 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 &lt;/IfModule&gt; </code></pre> <p>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:</p> <p><a href="http://myurl.com/welcome/index" rel="nofollow">http://myurl.com/welcome/index</a></p> <p>the pages comes up fine, but when I got to this url, I get:</p> <p><a href="http://myurl.com/welcome/test" rel="nofollow">http://myurl.com/welcome/test</a></p> <p>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.</p> <p>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.</p> <p>thanks guys!</p> <h2>Update</h2> <p>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.</p> <h2>update</h2> <p>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</p> <blockquote> <p>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. </p> <pre><code> Go back to the previous page. Go to and look for the information you want. More information </code></pre> <p>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.</p> </blockquote> <p>If I try to hit a page that doesn't exist, I get 404 errors which is what I expect.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload