Account Access
Most Discussed
Topic Cloud
| Perfect .htaccess for Joomla! with Godaddy Hosting |
| Written by Zach |
| January 29, 2010 |
|
Help! My .htaccess doesn’t work on Godaddy hosting or ‘blablabla’ hosting. I hear this a lot, and as a professional website developer I have used Joomla! with search engine friendly URLs on more hosts than I can count. There are some that are trickier than others and even a few that just plain won’t work no matter what. Most of the people having problems with their .htaccess file on various hosts are having the problem because of two simple reasons. The Nasty 500 Internal Server ErrorEither, #1, the host doesn’t support certain directives in the file, which often will result in you getting a 500 internal server error after enabling the .htaccess file. I used to get this error quite a bit with Godaddy hosting, but it has since been fixed. Or, #2, the .htaccess simply needs time to be read and accepted by the server, as some hosts will cache the file and not register changes to it for varying amounts of time. Again, Godaddy used to have this problem quite a bit. Anyway, here is an .htaccess file that is guaranteed to work on Godaddy hosting. NOTE! You might need to wait up to 30 minutes before activating SEF Urls in the Joomla! administrator console. Although they claim that they have stopped caching the .htaccess file for so long, there still might be some delays before it registers. Also, I have literally used this EXACT .htaccess file on over 10 different Godaddy hosting accounts and it has worked fine. All of them were Linux, of course, and using PHP 5 but it shouldn’t matter. ## To Workaround or Not to WorkaroundI have seen many sites suggesting various work arounds and commenting out of certain lines, but honestly, this one works and if it doesn’t…well…I’d be very surprised to hear that. Also, be careful that you don’t mis-interperate the ‘RewriteBase’ command. You should leave it commented out in most cases, even if you are hosting multiple domains within the same hosting account. This command is only used when you have a Joomla! installation in a subdirectory of a single domain. So, even though you might have a second site yoursite2.com within a sub-directory of your main FTP called /yoursite2/ the RewriteBase still does not need to be changed. It is only if you installed Joomla! into a sub-directory of a domain so you can access it at www.yourdomain.com/yoursubdirectory/. Good luck! |



