500 internal error .htaccess

Discussion in 'Programming' started by omariobros, Nov 22, 2012.

  1. #1
    Hello.

    I have bought a website script and I get always 500 internal error.

    I have followed every details that are described in the installation document.

    The script I bought is called GroupDeal and it's from Agriya.com.

    The folders are like this

    .htaccess
    app/
    core/

    The htaccess root directory is like that:

    Options -Indexes
    
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    
    
    #Force WWW
    #	RewriteCond %{HTTP_HOST} !^www
    #	RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]
    
    
    #No WWW
    	RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    	RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    
    
    # If installed in root without setting DOCUMENT_ROOT:
    #	RewriteBase	/
    
    
    # If installed in local or under a path say /dev1base/: (otherwise, doesn't need RewriteBase)
    	RewriteBase	/
    
    
    	RewriteCond %{REQUEST_FILENAME} !-d
    	RewriteCond %{REQUEST_FILENAME} !-f
    	RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    </IfModule>
    
    
    # gzip
    <IfModule mod_deflate.c>
        	AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript text/css text/html
    </IfModule>
    
    
    # browser caching
    <IfModule mod_expires.c>
    	FileETag None
    	ExpiresActive On
    	ExpiresByType text/css "access plus 1 month"
    	ExpiresByType text/javascript "access plus 1 month"
    	ExpiresByType application/x-javascript "access plus 1 month"
    	ExpiresByType application/javascript "access plus 1 month"
    	ExpiresByType image/gif "access plus 1 month"
    	ExpiresByType image/jpeg "access plus 1 month"
    	ExpiresByType image/png "access plus 1 month"
    #	ExpiresByType video/x-flv "access plus 1 month"
    	ExpiresByType application/x-shockwave-flash "access plus 1 month"
    
    
    	# special MIME type for icons
    	AddType image/vnd.microsoft.icon .ico
    	# now we have icon MIME type, we can use it
    	# my favicon doesn't change much
    	ExpiresByType image/vnd.microsoft.icon "access plus 3 months"
    </IfModule>
    
    
    
    Code (markup):
    And the /app/.htaccess look like this:

    # In local: in httpd/conf/projects/dev1base.conf :# alias /dev1base F:/projects/grouponpro/trunk/..../webroot/
    
    
    ######################################
    # Root .htaccess
    # Case 1: When installing in root but without setting DOCUMENT_ROOT, e.g, http://www.example.com/ :
    # In the root above /app (say, public_html)
    # -->
    # Options +FollowSymLinks # needed for some hosts, especially GoDaddy
    #<IfModule mod_rewrite.c>
    #	RewriteEngine on
    #	RewriteBase	/app/
    #	RewriteRule	^$	webroot/	[L]
    #	RewriteRule	(.*) webroot/$1	[L]
    # </IfModule>
    # <--
    # Case 2: When installing in folder next to root, e.g., http://www.example.com/grouponpro/ :
    # In the root above /app (say, public_html/dev1base/)
    # -->
    #<IfModule mod_rewrite.c>
    #    RewriteEngine on
    #    RewriteBase	/grouponpro/app/
    #    RewriteRule    ^$    webroot/    [L]
    #    RewriteRule    (.*) webroot/$1    [L]
    # </IfModule>
    
    
    ########################################
    # This .htaccess
    # Case 1: When installing in root but without setting DOCUMENT_ROOT, e.g, http://www.example.com/ :
    #<IfModule mod_rewrite.c>
    #	RewriteEngine on
    #	RewriteBase	/app/
    #	RewriteRule	^$	webroot/	[L]
    #	RewriteRule	(.*) webroot/$1	[L]
    # </IfModule>
    # Case 2: When installing in folder next to root, e.g., http://www.example.com/grouponpro/ :
    #<IfModule mod_rewrite.c>
    #    RewriteEngine on    
    #    RewriteBase	/grouponpro/app/
    #    RewriteRule    ^$    webroot/    [L]
    #    RewriteRule    (.*) webroot/$1    [L]
    # </IfModule>
    
    
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule    ^$    webroot/    [L]
        RewriteRule    (.*) webroot/$1    [L]
     </IfModule>
    
    
    
    Code (markup):
    And the last .htaccess file in /app/webroot/.htaccess

    Options -Indexes
    
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    
    
    #Force WWW
    #	RewriteCond %{HTTP_HOST} !^www
    #	RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]
    
    
    #No WWW
    	RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    	RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    
    
    # If installed in root without setting DOCUMENT_ROOT:
    #	RewriteBase	/
    
    
    # If installed in local or under a path say /dev1base/: (otherwise, doesn't need RewriteBase)
    	RewriteBase	/
    
    
    	RewriteCond %{REQUEST_FILENAME} !-d
    	RewriteCond %{REQUEST_FILENAME} !-f
    	RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    </IfModule>
    
    
    # gzip
    <IfModule mod_deflate.c>
        	AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript text/css text/html
    </IfModule>
    
    
    # browser caching
    <IfModule mod_expires.c>
    	FileETag None
    	ExpiresActive On
    	ExpiresByType text/css "access plus 1 month"
    	ExpiresByType text/javascript "access plus 1 month"
    	ExpiresByType application/x-javascript "access plus 1 month"
    	ExpiresByType application/javascript "access plus 1 month"
    	ExpiresByType image/gif "access plus 1 month"
    	ExpiresByType image/jpeg "access plus 1 month"
    	ExpiresByType image/png "access plus 1 month"
    #	ExpiresByType video/x-flv "access plus 1 month"
    	ExpiresByType application/x-shockwave-flash "access plus 1 month"
    
    
    	# special MIME type for icons
    	AddType image/vnd.microsoft.icon .ico
    	# now we have icon MIME type, we can use it
    	# my favicon doesn't change much
    	ExpiresByType image/vnd.microsoft.icon "access plus 3 months"
    </IfModule>
    
    
    
    Code (markup):
    Can anyone help me to figure out why I am getting this error?
     
    omariobros, Nov 22, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    You have to look at the server log to see what the error is. (500 means "server error".) No one can tell you what the cause of the error is without knowing what the error is.
     
    Rukbat, Nov 22, 2012 IP
  3. omariobros

    omariobros Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #3
    I do not have access to the server log :/ it's shared hosting.
     
    omariobros, Nov 22, 2012 IP
  4. omariobros

    omariobros Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #4
    Directory index forbidden by Options directive: /home
     
    omariobros, Nov 22, 2012 IP