Joomla 如何更改<;基本href=";10.10.10.10/myfoldername“/&燃气轮机;在乔姆拉
如何更改:Joomla 如何更改<;基本href=";10.10.10.10/myfoldername“/&燃气轮机;在乔姆拉,joomla,Joomla,如何更改: <base href="10.10.10.10/myfoldername" /> 在乔姆拉。我希望它像相对路径,而不是实际路径。 有可能吗。请提供帮助您可以通过在主题中添加以下代码来更改或删除Joomla中的基本URL: // remove the Base URL $doc = JFactory::getDocument(); unset($doc->base); // edit the Base URL $doc = JFactory::getDoc
<base href="10.10.10.10/myfoldername" />
在乔姆拉。我希望它像相对路径,而不是实际路径。
有可能吗。请提供帮助您可以通过在主题中添加以下代码来更改或删除Joomla中的基本URL:
// remove the Base URL
$doc = JFactory::getDocument();
unset($doc->base);
// edit the Base URL
$doc = JFactory::getDocument();
$doc->base = 'Any valid path or URL';
建议删除它,以避免在某些情况下出现路径错误,特别是在混合HTTP-HTTPS环境中。您可以通过在主题中添加以下代码来更改或删除Joomla中的基本URL:
// remove the Base URL
$doc = JFactory::getDocument();
unset($doc->base);
// edit the Base URL
$doc = JFactory::getDocument();
$doc->base = 'Any valid path or URL';
建议删除它,以避免在某些情况下出现路径错误,特别是在混合HTTP-HTTPS环境中。基本路径可能无效。缺少协议(
http://
或https://
)基本路径可能无效。缺少要更改的协议(http://
或https://
)。。我应该在哪个文件中更改。你能给我任何一步一步的指导吗?把它添加到模板的index.php
中。另外,请查看配置文件:Configuration.php
,即live\u站点
变量。在何处更改。。我应该在哪个文件中更改。你能给我任何一步一步的指导吗?把它添加到模板的index.php
中。另外,请查看配置文件:Configuration.php
,即live_站点
变量。