Blog

Fix server error 500 on jT CarFramework installation.

Fixing error 500 on jT CarFramework

Some servers will fail to load the .htaccess located on the root directory of your installation. If that’s your case, the below reasons are the probable cause:

I. ModRewrite: Make sure your server has the ModRewrite enabled.

ModRewrite enabled. Problem persists.

In some servers (like 1 & 1) won’t allow certain overrides on the PHP configuration. To fix the problem follow the steps below:

I. Open the .htaccess (on root directory) with the NotePad or any text editor of your preference (don’t use MS Word though!)
II. Delete the php_mod line [ php_value short_open_tag ] III. Save the file but, don’t close it.
IV. Check it the error is resolved.
V. If the error persists, add the following next to [ RewriteEngine on ]:
RewriteBase /
It should look like:


RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?url=$1 [L,QSA] # redirect www to non www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

GoDaddy users

GoDaddy is famous for not been to useful when it comes down to support. Specially when it comes down to HTACCESS configuration.
If you are getting error 500 with jT CarFramework installtion, try the following:

1. Open you HTACCESS located at the ROOT directory of your installation;

2. Replace ALL code within it with the follow:

# rewrite URL from ?url=slug to /slug
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?url=$1 [L,QSA]
# redirect www to non www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

 

The code above has been tested in a couple of dozens of GoDaddy installation and seems to work fine. If you are not sure how to get it done, do not hesitate in contacting us!

Comments are closed, but trackbacks and pingbacks are open.