0

I just want to make sure I will do the assets pathing right, if someone could check. I have https://mysite.com and https://mysite.com/uploads as the folder where the assets should go.

After I set my System name on General settings to my site url I should do the following things:

I set the .env file like:

DEFAULT_SITE_URL="https://mysite.com/"

The next thing i need to do is in general.php like this:

    '*' => array(
        // ...
    ),

    'mysite.com' => array(
        // ...
        'environmentVariables' => array(
            'basePath' => '/uploads',
            'baseUrl'  => getenv('DEFAULT_SITE_URL'),
        )
    )
);

Than in the assets pathing dashboard I will set the baseUrl to:

{baseUrl}

and the base path to:

{basePath}

Should I set everything like this or I am missing something or doing something wrong?

Thank you in advance!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.