Changing Site To Use A New Domain URL

Post

Posted
Rating:
#6843 (In Topic #1788)
Avatar
Standard member
starfish is in the usergroup ‘Fan in action’
Hi,

I purchased a new DOMAIN URL.  In setting the Domain Forwarding for that URL, I am able to set either FORWARD ONLY or FORWARD WITH MASKING.   I wanted to use the masking, so that all the pages in my site would now use the new URL.

For Composr to work with the new URL, would I just have to change the $SITE_INFO['domain']  AND the $SITE_INFO['base_url'] in the _config.php file?  

Would anything else need to be changed for my site to work properly?

Is there a chance that some things will not work when these changes have been made?

Thanks so much!
Online now: No Back to the top

Post

Posted
Rating:
#6845
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You probably are needing to set the DNS settings or nameservers for the domain, "forward only" probably means a redirect, and "forward with masking" probably means proxying which means all traffic gets routed through two servers unnecessarily.

As for Composr, yes, just change those settings in _config.php. Composr goes to pains to avoid including the base URL anywhere. That said, if you have been entering absolute URLs to things, you may need to edit where you did that.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6847
Avatar
Standard member
starfish is in the usergroup ‘Fan in action’
Thank you Chris!  I thought I had found where things needed to be changed, but after reading an old ocPortal post, I thought I should double check.  I knew you always make things easy, localizing the change so that you don't have to change multiple pages.

Yes, I thought I had to set the nameservers too, but now GoDaddy has a form where you fill in your information and the nameservers are set automatically.

Yes:
Forward Only = redirect to main page, all pages have the old base URL.
Forward With Masking = redirect to main page, all pages have the new base URL.

I have Composr in a separate folder from my other projects, so a more specific base URL pointing to that folder is a "plus".

Thanks again!
Online now: No Back to the top

Post

Posted
Rating:
#6848
Avatar
Standard member
starfish is in the usergroup ‘Fan in action’
Update for those reading this: 

The form on Godaddy sets the nameservers to Godaddy nameservers.  I set my host's nameservers, and then used the form.  The form reset the nameservers back to Godaddy settings.

I just entered my host's nameservers again, and will redirect using my cpanel.

Hope this helps someone.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Vaiva, gabriel58, babu, amit.nigam, Philip, ManojSree, Manu, Paul D, deepu_ms

Forum statistics:
  • 1,257 topics, 5,783 posts, 6,953 members
  • Our newest member is Liamtratravelers
Birthdays:
Back to Top