0
Welcome Guest! Login
0 items Join Now

Changing Domain Name from Dev URL to Live URL on same server

    • RandyS's Avatar
    • RandyS
    • Rocketeer
    • Posts: 89
    • Thanks: 0

    Changing Domain Name from Dev URL to Live URL on same server

    Posted 15 years 10 months ago
    • Hi,

      How's everyone? Okay here goes.

      I have an account on Media Temple and I've set up an alternative domain, installed Joomla and the new Refraction template and started configuring. So far so good.

      Dev URL = http://somedomain.com.s1500_gridserver.com.

      Once I redirect the DNS from its registrar to Media Temple then this directory will drop the s1500_gridserver.com from the URL.

      Live URL should then = www.somedomain.com or somedomain.com

      I thought I would test this before I did too much configuring and it was kind of hit and miss.

      It was my hope that once I've redirected the www.somedomain.com then Joomla would simply behave as it did under the dev url. I seemed to work but from the administration area clicking on preview would revert to the Dev URL.

      So my Dev set up still has references to the Dev Url in it and my ultimate question is ...

      Do I have to use something like JoomlaPack to back up my Dev URL, re-direct the Live Domain, then restore the Dev site to the Live URL?

      OR ...

      Is there a way I can manually change any Dev URL references to Live URL references in Joomla itself after I've redirected the domain?

      Thanks, hope this makes sense.

      Cheers,
      RandyS
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Changing Domain Name from Dev URL to Live URL on same server

    Posted 15 years 10 months ago
    • JoomlaPack is great for doing backups. About the Live URL, Did you edit var $live_site = ''; in configuration.php?
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • RandyS's Avatar
    • RandyS
    • Rocketeer
    • Posts: 89
    • Thanks: 0

    Re: Changing Domain Name from Dev URL to Live URL on same server

    Posted 15 years 10 months ago
    • I'm a Joomla NOOB so of course I didn't try that :cheesy: I'll give it a try.

      JoomlaPack does sound like something I need to learn but for now since dev and live site are on the same server it was my hope that I wouldn't have to do a full migration since the MySQL database references are the same.

      Thanks,
      RandyS
    • Tyndie's Avatar
    • Tyndie
    • Preeminent Rocketeer
    • Posts: 8803
    • Thanks: 3

    Re: Changing Domain Name from Dev URL to Live URL on same server

    Posted 15 years 10 months ago
    • I am not sure if you mean that joomla remains in the same web directory and it is just the domain name that is changing.

      1. If it is then:

      If you have mod_rewrite option turned on in joomla admin, try adding these rules to your htaccess file:

      *change the somedomain to your actual domain
       
      RewriteCond %{HTTP_HOST} ^somedomain.com.s1500_gridserver.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.somedomain.com.s1500_gridserver.com$
      RewriteRule ^/?(.*)$ "http\:\/\/www\.somedomain\.com\/$1" [R=301,L]
       
      RewriteCond %{HTTP_HOST} !^www\.
      RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
       

      2. If you are moving it to another directory then make the neccessary changes in the configuration file, for logs and tmp with the new web root.

Time to create page: 0.072 seconds