Note that there are some explanatory texts on larger screens.

plurals
  1. POCodeIgniter redirect not working on a real Server
    primarykey
    data
    text
    <p>I'm having a problem with CI 2.1.3 redirect function. </p> <p>Everytime I call redirect, it shows a white-blank page. In fact, it works well on my localhost, the problem just occurs on my real server (with CentOS 5 installed).</p> <p>This is how I call the redirects :</p> <pre><code>redirect('frontend/article/index'); or redirect(base_url('articles.html')); </code></pre> <p>I did add a route in config/routes.php </p> <pre><code>$route['articles.html'] = 'frontend/article/index'; </code></pre> <p>with : frontend is module, article is controller, and index is action (I'm using <a href="https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc" rel="nofollow noreferrer">wiredesignz's HMVC module</a> extension)</p> <p>How could I fix it? And what is the problem here?</p> <p>Thanks in advance!</p> <p><strong>UPDATE</strong></p> <p>I replaced CI redirect function by calling : </p> <p>header("Location: <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a>");</p> <p>but it didn't work too.</p> <p>So I created a file named info.php and uploaded it to my server. Here's the content:</p> <pre><code>&lt;?php phpinfo(); ?&gt; </code></pre> <p>When I type in the address bar : <a href="http://example.com/info.php" rel="nofollow noreferrer">http://example.com/info.php</a>, it shows like in the image.</p> <p><img src="https://i.stack.imgur.com/u3wt1.png" alt="enter image description here"></p> <p>Why was there a ">" character? Was it the problem causing redirect not working?</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