Welcome Guest, Not a member yet? Register   Sign In
Moved from local to remote host - Routing Problems
#2

(07-25-2015, 06:27 AM)agrc Wrote: Hi all,

Just re-joined the forum since things changed here... Hi!

I've immediately ran into a problem with CodeIgniter 3.0 (also haven't touched CI for a few years).

Created a few views, a controller and a few routes to match.

Locally the views are being served as intended and the default controller is also being rendered as it should per my setup.

However, I moved the entire installation to a remote host (typical shared server (mod re-write available)) and problems came immediately.

The default controller returns a 404 and the additional routes I've created return an error message "No input file specified".

I don't know how to fault find this and my host has referred me here. Any ideas?

Thanks in advance.


If your .htaccess looks like this, it should work.

Notice the ? sign after index.php in RewriteRule

PHP Code:
<IfModule mod_rewrite.c>

 
 Options +FollowSymLinks
  RewriteEngine on

  
# Send request via index.php
 
 RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond 
%{REQUEST_FILENAME} !-d
  RewriteRule 
^(.*)$ index.php?/$[L]

</
IfModule
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro
Reply


Messages In This Thread
RE: Moved from local to remote host - Routing Problems - by Dracula - 07-25-2015, 07:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB