Changing Site To Use A New Domain URL
Posted
#6843
(In Topic #1788)

Standard member

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!
Posted

Site director

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 Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- 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.
Posted

Standard member

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!
Posted

Standard member

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.
1 guest and 0 members have just viewed this.