Joomla 1.5 - 500 Internal Server Error
After installing Joomla on a Godaddy shared server (Deluxe plan which allow unlimited websites), I renamed htaccess.txt into .htaccess to allow url rewriting.
Home page is fine, but the first article created and linked to the main menu returned this error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
The solution to the INTERNAL SERVER ERROR problem is uncommenting the following line in .htaccess (or in htaccess.txt if you didn’t already rename it).
# RewriteBase /
You must remove the # , thus having in your .htaccess
RewriteBase /
Reload the page and everything should be fine !
Tags: godaddy, godaddy shared hosting, Joomla, server
June 4th, 2009 at 9:01 pm
Thank you, Thank You, Thank you! I’ve looked all over the net for this fix and I found it on your blog. Keep up the good work.
Boomer
July 1st, 2009 at 8:46 am
Cool,
This seems to be working for me,
I had been trying from long time and searching here and there,
finally your solution worked for me.
Thanks for blogging this info.
noor
July 21st, 2009 at 1:20 pm
If the website is not your main root hosting plan do you use the
RewriteBase /subfolder
Or just
RewriteBase /
July 21st, 2009 at 1:47 pm
I figured it out, it’s just the
RewriteBase /
other sites had mentioned the /subfolder this should NOT be used.
August 14th, 2009 at 8:51 pm
i am still having the problem……will you bother to help me???
August 24th, 2009 at 9:16 am
Hello Sahil!
did you find any solution to ur problem???
I m also facing the same problem. I am configuring the site on Godaddy. Some time like 1 out of 100 it runs but when i change something it shows error again. Help me!!!! if you can
September 18th, 2009 at 7:21 pm
Please post your .htaccess and we can try to find a solution!
January 26th, 2010 at 7:56 am
im still having the problem here is a copy of the htaccess file
##
# @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: ‘Options +FollowSymLinks’ may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url’s. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#
#Order allow,deny
#Deny from all
#Satisfy all
#
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver’s URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
February 24th, 2010 at 12:49 am
Works a treat - nice work! You should spread the news on joomla forums too!
March 21st, 2010 at 1:35 am
thaaaaaaaaaaaaaaaaaaaaaaaankkksss!!! it works! You saved my life