Skip to content

404 on localhost #27

Closed Answered by aaronbushnell
maartenheideman asked this question in Q&A
Mar 20, 2023 · 4 comments · 15 replies
Discussion options

You must be logged in to vote

Added the ability to set a custom baseUrl for Craft installs that are under a subdirectory in Palette 3.2.0.

For example, if your Craft URL is http://mysite.com/craft/ you can add the following to your config/palette.php file:

'baseUrl' => 'http://mysite.com/craft',

But, ideally, you're using an .env variable for this instead of something hardcoded:

'baseUrl' => \craft\helpers\App::env('SITE_URL'),

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@aaronbushnell
Comment options

@maartenheideman
Comment options

Comment options

You must be logged in to vote
13 replies
@aaronbushnell
Comment options

@maartenheideman
Comment options

@aaronbushnell
Comment options

@maartenheideman
Comment options

@aaronbushnell
Comment options

Answer selected by aaronbushnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants