Statamic simple-commerce multi site gives on sub name a 404 #945
-
After setting it up as a multisite i get on each sub ( ex localhost/fr/ ) a 404 error. |
Beta Was this translation helpful? Give feedback.
Answered by
duncanmcclean
Dec 14, 2023
Replies: 1 comment 6 replies
-
Have you tried clearing your route cache? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I think I see why that's happening.
First, check the
APP_URL
in your.env
is accurate.Also, you may want to adjust the URLs of your French & German sites so they use the
APP_URL
value, like this:Finally, login to the Control Panel and go through any entries (like pages) you want to be available on the other sites and "localize" them (to localize an entry, click into edit it, click on the site in the sidebar with the line through it, then save the entry, it'll then be localized.)
After I did those three things, everything started working for me!