ModX Revo: Update sites base URL?

百般思念 提交于 2019-12-05 15:10:33

You need to change $modx_base_url= '/' in /core/config/config.inc.php and if that is not enough - manually clean /core/cache/ folder.

Four years later, I've dealt with the same thing for a few months, and was incredibly frustrated.

An updated answer to this issue would be navigating to Settings (icon) > Context, then choosing Key > web (right click) > Update Context > Context Settings.

Change http_host (ex. localhost) and site_url (ex. http://localhost/).

Now, from the top menu Manage > Clear Cache as well as Manage > Clear Cache > Refresh URIs.

It was like finding a pot of gold.

I have a web on some super-old Modx version which I needed to temporarily set up for viewing, and I ran into this issue.

The way I changed the base URL is in the database:
table: modx_context_setting
key: site_url

This outlines how to move modx to a new location ~ which is essentially what you have done.

http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server

genereally you can get away with updating the config.inc.php & clearing the cache, but it's a good idea to go through the system setting table in the db looking for old paths, some packages do store path info in there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!