Welcome Guest, Not a member yet? Register   Sign In
CI in a Linux environment setup
#16

(This post was last modified: 10-24-2019, 09:58 AM by esle.)

(10-24-2019, 08:27 AM)John_Betong Wrote: I tried the .htaccess file on CI_3.1.10 and it worked OK.

I notices that the Routes file has the following and no doubt accounts for why the Splash page is not appearing.

$route['default_controller'] = 'Home/index'; // to
$route['default_controller'] = 'welcome'; // shows the same 404 error page not found

Please try remming the second redirection because it overrides the original redirection to the Home controller.

And don't forget to use the following .htaccess script:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

That should render the Splash page and I find it is far better to start with something (Hello world) and add script until failure occurs. It is a nightmare starting with something that does not work.

Once working experiment with different debug options.

Sorry if I confused you with  but didn't mean to
Code:
$route['default_controller'] = 'Home/index'; // to
$route['default_controller'] = 'welcome'; // shows the same 404 error page not found
But my routes only contain one line, I was referring to that I have already tried setting it up to 'welcome' and nothing, right now tried setting 'welcome' and the .htaccess you provide me and still nothing.

EDIT: So I have set up some old projects I had withing htdocs folder containing only, HTML, CSS, Bootstrap and some jQuery and they're rendering ok, seems it's problem within CI.
Reply


Messages In This Thread
CI in a Linux environment setup - by Raidenlee - 06-19-2015, 05:12 PM
RE: CI in a Linux environment setup - by kenjis - 06-19-2015, 07:57 PM
RE: CI in a Linux environment setup - by esle - 10-22-2019, 03:44 PM
RE: CI in a Linux environment setup - by mboufos - 10-23-2019, 12:05 AM
RE: CI in a Linux environment setup - by esle - 10-23-2019, 12:31 AM
RE: CI in a Linux environment setup - by esle - 10-23-2019, 07:44 AM
RE: CI in a Linux environment setup - by esle - 10-23-2019, 09:20 AM
RE: CI in a Linux environment setup - by esle - 10-24-2019, 02:02 AM
RE: CI in a Linux environment setup - by esle - 10-24-2019, 09:49 AM
RE: CI in a Linux environment setup - by esle - 10-25-2019, 03:07 AM
RE: CI in a Linux environment setup - by esle - 10-25-2019, 03:48 AM
RE: CI in a Linux environment setup - by esle - 10-27-2019, 04:03 AM
RE: CI in a Linux environment setup - by esle - 10-28-2019, 01:27 AM
RE: CI in a Linux environment setup - by esle - 10-28-2019, 02:09 AM
RE: CI in a Linux environment setup - by esle - 10-29-2019, 01:46 AM
RE: CI in a Linux environment setup - by esle - 11-04-2019, 08:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB