We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    Can anybody point me in the direction of a comprehensive guide to changing the domain name of a site?

    Currently built under dev.mysite.co.uk and want to change to mysite.co.uk.

    Revo 2.2
    PHP 5.4
    Mysql
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 3109 ☆ A M B ☆
      • 894 Posts
      I think all you have to do is create a Context Setting with site_url and http_host and specify the values for your site, that should take care of it.

      If you have never dealt with Context Settings I recommend you read my tutorial.

      If that doesn't work then you might need to edit your config.inc.php in the core/config folder just search for:

      $http_host
      


      and replace the value with your new domain.

      Good Luck.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 36582
        • 463 Posts
        Thanks for the advice - I'm going to be pleasantly surprised if it is as simple as that ;-)
          Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
          • 42046
          • 436 Posts
          Quote from: benmarte at Mar 27, 2013, 07:41 AM
          If that doesn't work then you might need to edit your config.inc.php in the core/config folder just search for:

          $http_host
          


          and replace the value with your new domain.

          I can confirm this method has worked for me. Edit line 62 of /core/config/config.inc.php

          $http_host='www.yoursite.com';