Computer
Joomla Godaddy Settings
I have several Joomla sites that are hosted on Godaddy. These sites are running on Godaddy's Linux shared hosting. I have noticed a couple of things. When you register a site and setup a hosting account the url to the site will resolve as sitename.com instead of www.sitename.com. I prefer to have a site resolve as www.sitename.com . I have called godaddy on this but their only comment was that the site would resolve with either www or without - which is true. If you are in a browser and type sitename.com the brower will go to your site. If you type www.sitename.com the brower will again go to your site ... but the url listed will switch to sitename.com in the address field of the browser. Another thing I noticed was that when you install joomla on the site the site name in the global configuration file will be set to sitename.com instead of www.sitename.com . If you try to logon the administrative console with www.sitename.com/administrator the logon will seem to fail but if you enter you username and password again the logon will work. If you watch the address field in the browser you will notice that url is www.sitename.com but after that logon fails, the url changes to sitename.com and re-enting your logon name and password will work this time. I've went in to the global configuration file and change the site name to www.sitename.com . After doing that I noticed a couple of things ... Joompack appears to hang after that ... you will get a message saying not to navigate away from the page until the backup finishes, but the progress messages will never appear on the page. If you try to upload a file you will get the error message "please input a file for upload". Here are the steps I took to cure all of the above issues. First I went into Glogal configuration and change the site name from sitename.com to wwww.sitename.com. Second I went into the .htaccess file and add the following line; RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.sitename\.com$ [NC] RewriteRule ^(.*)$ http://www.sitename.com/$1 [R=301,L] Third I edited the configuration.php file and filled empty parameter $live_site with complete path to my site 'http://www.sitename.com' Now whether you type sitename.com or www.sitename.com the brower will go to the site and the url returned in the browser address window will be www.sitename.com . File uploads work ... Joompack doesn't hang. Special thanks to JordiGuilleumes for posting global configuration fix ....http://forum.joomla.org/viewtopic.php?f=470&t=424652 Last Updated (Monday, 15 February 2010 22:03) |
Technology


