holmescreek

Renaming Processwire Site on Temporary Domain account to Permanent Domian account?

Recommended Posts

Summary: If I have a site sitting on a server called testing.com, then on the server change it to mycompany.com, do I have to modify any settings in ProcessWire?

After building several processwire for clients, the one question that I haven't had is about moving a processwire site from an old (temporary) domain to a new domain.

For instance, I typically setup development sites for clients and register a temporary domain (and lock with a password). For instance, thee client can go test.com and get all their content finalized, change wording, add news, swap out photos -- everything to make the site production read.  

Next, on my hosting account I can have testing.com renamed to theircompany.com - and change the nameservers.

A simple question here. If I have a hosting company rename the account from testing.com to theircompany.com, change my nameservers whereas going to theircompany.com loads the production site, Is there anything I need to change in the processwire configuration or in the PW database?

In the past, I've just manually copied the site, and fresh-installed PW, and imported the data. Seems like a lot of hassle.

I have a second part question about updating the PW core, however, after consideration I'll post it as a new topic.

Share this post


Link to post
Share on other sites

You don't need to change anything in the database. The only change needed in this case is the httpHosts array:

$config->httpHosts = array('testing.com'); 

in the config.php file. 

  • Like 3

Share this post


Link to post
Share on other sites

If it is a new install, then the user salt (site/config.php) will be different, which affects the passwords.

  • Like 2

Share this post


Link to post
Share on other sites
9 hours ago, rick said:

which affects the passwords

userAuthSalt: " it is forever tied to the passwords as a secondary salt."

But if you use the very same database and files normally you should only need to update $config->httpHosts as @Sérgio Jardim pointed it out above.

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Entice
      Hi.
      I'm trying to figure out what might be the best approach when using PW for your CMS, but needing access custom tables. I know you can query your custom tables, so that's not my question here. What I'm trying to figure out is if I should separate an application from PW.
      Out of the box, the application I will be using has its' own tables and the app is built towards using those tables, so I don't want to rewrite the app to use PW, seems too much work.

      I do however want to use PW for the CMS and frontend where my users can add/update rows in those custom tables. Now the app itself can be connected from various devices on a handful of ports, so I'm expecting a high volume of requests to the app to a point where I'm seriously considering a dedicated server for this project.
      Would it be beneficial to create a whole subdomain just for the app and use PW to query the db? Or should I keep the 2 in the same db? Pros/Cons would be great here.
      Thanks!
    • By Mirza
      Any plans to support for processwire with php 7?
    • By flashmaster
      Hi im new to this forum and i need some help with a booking system that i have trying to implement under Processwire. I hope that i can explain as much as i can what my problem is.
      Here is the orginal script https://github.com/olejon/phpmyreservation
      I downloaded the script and got some help to fix it because it was all messed up. I have attached a file "ReservationSystem.rar" and it should work out of the box. Also attached the database file "Phpmyreservation.sql".
      The thing is the script works great as it is now but when i install a blank version of processwire and import the script to the template folder it wont work. I have tried many things but cant get it to work just error after error etc. Please ask me if you need some more information about this. I know you are the experts so thats why im asking you.
      ReservationSystem.rar
      phpmyreservation.sql
    • By zaib
      I've a simple scenario, i want to add two users "content_creator" & "content_publisher"
      content_creator can add new pages,edit them(only edit not publish) and view only where content_publisher can publish the unpublished pages after reviewing.
       
      Thank you.
    • By zaib
      I'm fetching some results on the basis of categories check boxes (which are checked only).
      until here works fine,
      issue is if multiple check boxes are selected so given result is also duplicating
      <?php $getCities = $page->find("template=t3Cities_list"); foreach ($getCities as $city) { foreach ($city->tags as $get) { $getTags = $page->get("template=tags_template, include=hidden")->children("sort=title, tag_code={$get->title}"); echo "<div class='grid-masonry'><div class='grid-sizer'></div>"; foreach ($getTags as $tag) { echo "<div class='grid-item'> <a href='{$tag->url}' class='img-hovered'> <div class='overlay'> <span>{$tag->title}</span> <!--<div class='cat-subtitle'>{$tag->categorymeta}</div> --> </div> <img class='img-responsive' src='{$tag->categorythumb->url}{$tag->categorythumb}' /> </a> </div>"; } echo "</div>"; } } ?> $getTags = $page->get("template=tags_template, include=hidden")->children("sort=title, tag_code={$get->title}");
      this {$get->title} is the value of checkbox