Welcome Guest, Not a member yet? Register   Sign In
Tutorial first app issues when not installed in doc root
#2

(This post was last modified: 05-05-2020, 10:41 AM by jreklund.)

Hi, are you sure you put the correct url here?

Code:
<p><a href="/news/<?= esc($news_item['slug'], 'url'); ?>

As /news/ are not something that get's automatically get set.

Just to make sure, you want https://www.soaringtools.org/ci-news/public to become https://www.soaringtools.org/ci-news ?

If so, this needs to be set in .env
Code:
app.baseURL = https://www.soaringtools.org/ci-news/

And for removing "public" you can follow these instructions:
https://forum.codeigniter.com/thread-759...#pid373901

To summarize; Rename "public" into "ci-news".

All other files and folders need to be moved here:
/pub/comwww/ci-news

/pub/comwww/soaringtools/ci-news/index.php
PHP Code:
$pathsPath FCPATH '../../ci-news/app/Config/Paths.php'
Reply


Messages In This Thread
RE: Tutorial first app issues when not installed in doc root - by jreklund - 05-05-2020, 10:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB