404 on localhost #27
-
I tried the plugin on my local enviroment (mamp pro 6). It doesn't work because I'll use `localhost/domain.com/public/ as the root of the project. The plugin gives me a 404 to GET http://localhost/actions/palette/access 404. It not accept the "DEFAULT_SITE_URL" set in the .env file. And I'll work with Firefox, CMD + K is a default shortcut. It would be greate to make the shortcut configurable. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
What's the "Base URL" of your site in Craft > Settings > Site? As long as your domain matches what's in here it should display just fine. Here's an example site I'm using it on with the domain of localhost:8000. |
Beta Was this translation helpful? Give feedback.
-
My base url is set with an environment variable. For example http://localhost/domain.com/public/ or http://localhost/second-domain.com/public/ I'll work with MAMP Pro on port 80 |
Beta Was this translation helpful? Give feedback.
-
Looked into the plugin files and the |
Beta Was this translation helpful? Give feedback.
-
Added the ability to set a custom For example, if your Craft URL is http://mysite.com/craft/ you can add the following to your
But, ideally, you're using an .env variable for this instead of something hardcoded:
|
Beta Was this translation helpful? Give feedback.
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:But, ideally, you're using an .env variable for this instead of something hardcoded: