📒
Pico Mail
  • Introduction
  • Installation
    • Installation on Hosting Server
      • Domain or subdomain creating
      • Database creating
      • Upload files to server
      • Change working directory
      • Import Database
      • Configure Environment
  • How To
    • How to upgrade?
    • How to login as an Admin?
    • How to create plan?
    • How to configure SMTP ?
    • How to configure Email Template?
    • How to configure System Application?
    • How to register as a customer?
      • Using Admin panel
      • Using Sign up form
    • How to configure payment gateways?
    • How to Configure Domain?
    • How to add Sender?
    • How to Configure Email Server?
    • How to create a Campaign?
    • How To Send Mail
  • Basic
    • Cron Setup
    • Site Settings
    • Email Template
    • Localization and Time Format
Powered by GitBook
On this page
  • Using .htaccess
  • By changing document root directory
  1. Installation
  2. Installation on Hosting Server

Change working directory

PreviousUpload files to serverNextImport Database

Last updated 2 years ago

You need to change your working directory to public folder

There are two ways you can do this:

  1. Using .htaccess file

  2. By changing document root directory (Recommended)

Using .htaccess

Create a .htaccess file on the root directory( where .env is located)

Ignore if already available

Edit .htaccess file and paste the below content

<IfModule mod_rewrite.c>
   RewriteEngine On 
   RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

By changing document root directory

1. Login to Cpanel. 2. In the Domains section, click the Addon Domains or Subdomains icon, depending on which you'd like to modify.

3. Locate the addon domain (or subdomain) you wish to modify.

4. Click the pencil icon next to the current document root for the domain you wish to modify.

5. In the pop-up window, enter the new document root(from example.com to example.com/public) and click Change