Skip to content

Removing Public from Faveo Helpdesk URL

Ladybird Web Solution Pvt Ltd edited this page May 1, 2018 · 2 revisions

Description In this document we will learn on how to remove public from Faveo Help Desk URL.

The Directory structure of Faveo contains the following files & folders:

--app

--bootstrap

--config

--database

--DB

--public

--resources

--storage

--tests

--vendors

.env

.gitattributes

.gitignore

.travis.yml

artisan

composer.json

composer.lock

gulpfile.js

index.html

LICENSE

package.json

phpspec.yml

phpunit.xml

README.md

server.php

Step by step instructions to remove public

Step 1: Create a new folder by the name “code”.

Step 2: Move all the files except “code” and “public” to the “code” folder. The new directory structure will look something like this:

code

public

Step 3: Move all the files from the “public” folder to out of the “public” folder.

Project Directory => Code Directory => The Project directory will look some what like below:-

--ckeditor

--code

--css

--downloads

--filemanager

--lb-faveo

--photos

--public

--uploads

--vendor

.htaccess

composer.json

error_log

faveowhite.png

favicon.ico

index.php

robots.txt

And the code directory will look something like this:

--app

--bootstrap

--config

--database

--DB

--public

--resources

--storage

--tests

--vendors

.env

.gitattributes

.gitignore

.travis.yml

artisan

composer.json

composer.lock

gulpfile.js

index.html

LICENSE

package.json

phpspec.yml

phpunit.xml

README.md

server.php
 

Step 4: Do create one more “public” folder inside the “code” folder because the project is using the public folder for some internal use.

Step 5: Open the file “index.php” under the project directory.

Step 6: It’s time to edit this file.

Search for the two Syntax mentioned below:

Replace:

require __DIR__.'/../bootstrap/autoload.php';

With:

require __DIR__.'/code/bootstrap/autoload.php';

Similarly

Replace:

$app = require_once __DIR__.'/../bootstrap/app.php';

With:

$app = require_once __DIR__.'/code/bootstrap/app.php';

Step 7: Open the file “ConfigServiceProvider.php” under the code/app/Providers

Search for the two Syntax mentioned below:

Replace:

'lfm.images_dir' => '/public/uploads/',

With:

'lfm.images_dir' => '../uploads/',

Similarly

Replace:

'lfm.files_dir' => '/public/uploads/',

With:

''lfm.files_dir' => '../uploads/',

**That's all, Faveo will be running now with this URL: **

https://www.yourwebsite.com/helpdesk

Also URL in some case where you are hosting Faveo directly on the domain root or sub domain directory, will be: https://www.yourhelpdesk.com or https://helpdesk.yourwebsite.com

Installation and Upgrade Guide

Administrator's Guide

Agent's Guide

Email Integration

Release & Upgrade Notes

Known Issues

Contribute & Feedback

Knowledge Base

Third Party Integration

Plugins

API

Clone this wiki locally