GoDaddy and .htaccess

Discussion in 'Apache' started by beanpole136, Mar 18, 2009.

  1. #1
    Ok, here is my problem:

    I recently used GoDaddy to purchase a web domain and hosting plan. I uploaded my files to the server, but when I tried to access the site, I kept getting a 500 Internal Server Error. After experimenting a bit, I found that the site worked again when I removed the .htaccess file. I am unsure what it is in the .htaccess file that is causing this, but I need to get the problem solved soon. Additionally, switching hosting plans is currently not an option that I have.

    This is the code in my .htaccess file:
    
    Options +ExecCGI -Indexes +FollowSymlinks -MultiViews
    DirectoryIndex index.html index.htm index.php
    DefaultLanguage en-US
    AddDefaultCharset UTF-8
    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.troop63mi\.com$ [NC]
    RewriteRule ^(.*)$ http://www.troop63mi.com/$1 [R=301,L]
    
    SetEnvIfNoCase Referer "^http://www.troop63mi.com/" good
    SetEnvIfNoCase Referer "^$" good
    <FilesMatch "\.(png|jpg|jpeg|gif|bmp|swf|flv|css|js)$">
     Order Deny,Allow
     Deny from all
     Allow from env=good
     ErrorDocument 403 http://www.google.com/intl/en_ALL/images/logo.gif
    </FilesMatch>
    
    AddType video/x-flv .flv
    AddType application/x-shockwave-flash .swf
    AddType image/x-icon .ico
    AddType application/octet-stream .pdf
    
    ErrorDocument 404 /notfound.html
    ErrorDocument 400 "400 error"
    ErrorDocument 401 "401 error"
    ErrorDocument 403 "403 error"
    ErrorDocument 405 "405 error"
    ErrorDocument 406 "406 error"
    ErrorDocument 409 "409 error"
    ErrorDocument 413 "413 error"
    ErrorDocument 414 "414 error"
    ErrorDocument 500 "500 error"
    ErrorDocument 501 "501 error"
    
    <FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
     Order Allow,Deny
     Deny from all
    </FilesMatch>
    
    Code (markup):
    If anyone sees a problem or has any suggestions, I would greatly appreciate any help.

    Thanks,
    Beanpole136
     
    beanpole136, Mar 18, 2009 IP