espfutbol98
New Member
- Messages
- 200
- Reaction score
- 2
- Points
- 0
My .htaccess file is causing my site to give an Error 500 - Internal Server Error page and I have no clue why. I had this same .htaccess file on the same website a few months ago and it worked perfectly. Here's the file:
Code:
Options -Indexes
ErrorDocument 400 /error?400
ErrorDocument 401 /error?401
ErrorDocument 403 /403.shtml
#ErrorDocument 403 /403/croatian
ErrorDocument 404 /error?404
ErrorDocument 500 /error?500
#SetEnv TZ Europe/Zagreb
<Files 403.shtml>
order allow,deny
allow from all
</Files>
AddDefaultCharset UTF-8
DefaultLanguage hr-HR
DirectoryIndex index.php naslovnica.php index.html
RewriteEngine on
RewriteRule ^([^/.]+)/glazba$ view.php?id=glazba&umjetnik=$1 [L]
RewriteRule ^([^/.]+)/([^/.]+)/glazba$ view.php?id=glazba&umjetnik=$1&album=$2 [L]
RewriteRule ^(hr|en)$ lang.php?$1 [L]
##########################Rename "page.php" to "page"##############
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^/?(.*)$ $1.php
RewriteRule ^/?error\.php - [L]
#########################Look for "page" in SQL database, using view.php###
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ view.php?id=$1 [L]
##################Login/Logout#################################
RewriteRule ^([^/.]+)/admin$ admin.php?redirect=$1 [L]
RewriteRule ^([^/.]+)/log(in|out)$ log$2.php?redirect=$1 [L]
RewriteRule ^([^/.]+)/([^/\.]+)/log(out|in)$ log$3.php?redirect=$1&name=$2 [L]
########################################################
Last edited: