Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GoDaddy and .htaccess

Status
Not open for further replies.

beanpole136

Programmer
Mar 18, 2009
1
US
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:
Code:
Options +ExecCGI -Indexes +FollowSymlinks -MultiViews
DirectoryIndex index.html index.htm index.php
DefaultLanguage en-US
AddDefaultCharset UTF-8

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^[URL unfurl="true"]www\.troop63mi\.com$[/URL] [NC]
RewriteRule ^(.*)$ [URL unfurl="true"]http://www.troop63mi.com/$1[/URL] [R=301,L]

SetEnvIfNoCase Referer "^[URL unfurl="true"]http://www.troop63mi.com/"[/URL] 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 [URL unfurl="true"]http://www.google.com/intl/en_ALL/images/logo.gif[/URL]
</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>

If anyone sees a problem or has any suggestions, I would greatly appreciate any help.

Thanks,
Beanpole136
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top