ModX Revo: update the base URL of sites?

I developed a site for the client before the domain name was chosen. As a result, the URLs of the site pages are as follows:

http://host.mynost.net/~tempname/index.php?id=8 

Now the domain name has already been purchased, but if I click on any Wayfinder links, it still uses the old path as above, and not, say:

 http://domainname.com/index.php?id=8 

I assume this is configured in the config.inc.php file, but I'm not sure what to change.

Can someone point me in the right direction? Thanks!

+4
source share
4 answers

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

+6
source

Four years later, I did the same thing for several months and was incredibly upset.

The updated answer to this question will concern Settings (icon) > Context , then select Key > web (right click) > Update Context > Context Settings .

Change http_host (e.g. localhost ) and site_url (e.g. 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.

+1
source

I have a web version of some kind of trendy version of Modx that I needed to temporarily configure for viewing, and I ran into this problem.

How I changed the base url in the database:
table: modx_context_setting
: site_url

+1
source

This section describes how to move modx to a new location ~, which is essentially what you did.

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

in general, you can leave with the update config.inc.php and clear the cache, but it's nice to go through the system settings table in db looking for old paths, some packages store information about the path there.

0
source

All Articles