I am using CraftCMS, and my file structure is this -
root folder
-craft
-httpdocs
Inside the 'craft' folder there is a config.php file where I need to set the path and site URL. It looks like this -
'siteUrl' => [
'en_ca' => '',
'fr_ca' => '',
],
'environmentVariables' => [
'basePath' => '../httpdocs',
'baseUrl' => '',
]
Since the path for this file is inside the craft folder, /craft/config.php
and it needs to navigate to /httpdocs
inside the root, I use ../
This works fine for website
in this example, but when I go to website/fr
for the French site there is an error that it cannot find ../httpdocs
If I change the path to ../../httpdocs
then website/fr
loads correctly, but of course website
does not
How can I update the path so it works for both?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745352451a4623915.html
评论列表(0条)