John Davidson

Changing $live_site in configuration.php has no effect in Joomla 3

0 comments
Message:


I have developed a completely new site, on a new server for "www.mysite.it", but I want maintain access to the old one developed in Joomla 3.3.


I have created a "old.mysite.it" subdomain pointing to the old IP address and changed "www.mysite.it" and "mysite.it" domains in DNS panel to point to the new IP address.


Finally, I have changed $live_site entry in configuration.php:


public $live_site = 'http://old.mysite.it';.


When I try to access http://old.mysite.it I get Apache message, "Site in construction".


What's wrong?


Note that the old site is working. If I change hosts file on my local computer I can reach it on "www.mysite.it".



My Answer:
The issue you are experiencing is likely due to the fact that changing the $live_site variable in the configuration.php file does not actually change the live site URL in Joomla 3. This variable is used for internal purposes and does not affect the front-end URL of the site.

To change the front-end URL of your Joomla site, you will need to update the Site URL setting in the Joomla Global Configuration. To do this, log in to the Joomla administrator area and go to System > Global Configuration. In the Site tab, you will see the Site URL field where you can enter the new URL for your site.

After updating the Site URL in the Global Configuration, you may also need to clear the Joomla cache to ensure that the changes take effect. You can do this by going to System > Clear Cache and clicking on the Clear Cache button.

Once you have updated the Site URL in the Global Configuration and cleared the cache, you should be able to access your old site using the new URL specified in the configuration.php file.

Rate this post

3 of 5 based on 9640 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us