Internal Server Error (.htaccess) not a webbhost issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enCyde
    Member
    • Jul 2013
    • 37
    • 5.0.X

    Internal Server Error (.htaccess) not a webbhost issue

    Okey I can't solve this so I'm asking for help after 2 days of trying. I'm getting a Internal Server Error when I'm surfing to my site. I know this isn't a problem from my host side because I have already talked to them, and I can access files and folders on my site without a problem. I think it's my .htaccess that is causing some kinda a problem.

    First I thought it was a permissions problem. My folders are set to 755 and my files are set to 644 but I'm still getting the Internal Server Error.

    My site is www.riversidegaming.com and like you can see it's not working. but if you goto http://riversidegaming.com/pix it works right ? I got nothing in my error log in Cpanel. So what is causing this problem? is it a permission problem?, but I can access files in other folders but I can't get the site working from root with index.php. For the record I'm running the latest version of vbulletin.

    grateful for any help.

    This is how my .htaccess looks like.


    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #In some cases where you have other mod_rewrite rules, you may need to comment out the following line
    #and change it to match your folder name. This resets the other mod_rewrite rules for just this directory
    #If your site was www.example.com/forum, the setting would be /forum/

    #RewriteBase /

    # Send css calls directly to the correct file VBV-7807
    RewriteRule ^css.php$ core/css.php [NC,L]

    # Redirect old install path to core.
    RewriteRule ^install/ core/install/ [NC,L]

    # Main Redirect
    RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]

    # Because admincp is an actual directory.
    RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA]

    </IfModule>

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/atom+xml \
    text/javascript \
    application/javascript \
    application/json \
    application/rss+xml \
    application/vnd.ms-fontobject \
    application/x-font-ttf \
    application/xhtml+xml \
    application/xml \
    font/opentype \
    image/svg+xml \
    image/x-icon \
    text/css \
    text/html \
    text/plain \
    text/x-component \
    text/xml
    </IfModule>

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType application/x-javascript A1209600
    ExpiresByType text/javascript A1209600
    ExpiresByType application/javascript A1209600
    ExpiresByType text/css A31536000
    ExpiresByType image/x-icon A2592000
    ExpiresByType image/icon A2592000
    ExpiresByType application/x-ico A2592000
    ExpiresByType application/ico A2592000
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A1209600
    ExpiresByType image/jpg A1209600
    ExpiresByType image/png A1209600
    ExpiresByType application/x-shockwave-flash A1209600
    ExpiresByType font/ttf A2592000
    ExpiresByType font/otf A2592000
    ExpiresByType font/x-woff A2592000
    ExpiresByType image/svg+xml A2592000
    ExpiresByType font/truetype A2592000
    ExpiresByType font/opentype A2592000
    ExpiresByType application/x-font-woff A2592000
    ExpiresByType application/vnd.ms-fontobject A2592000
    </IfModule>

    <IfModule mod_headers.c>
    Header set Connection keep-alive
    <filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$">
    Header set Cache-Control "max-age=2592000, public"
    </filesmatch>
    <filesmatch "\.(jpg|jpeg|png)$">
    Header set Cache-Control "max-age=1209600, public"
    </filesmatch>
    <filesmatch "\.(eot|woff|otf|ttf|svg)$">
    Header set Cache-Control "max-age=2592000, public"
    </filesmatch>
    # css and js should use private for proxy caching https://developers.google.com/speed/...geProxyCaching
    <filesmatch "\.(css)$">
    Header set Cache-Control "max-age=31536000, private"
    </filesmatch>
    <filesmatch "\.(js)$">
    Header set Cache-Control "max-age=1209600, private"
    </filesmatch>
    </IfModule>




  • BirdOPrey5
    Senior Member
    • Jul 2008
    • 9613
    • 5.6.3

    #2
    Although it won't work correctly, try removing groups of lines from the bottom up from .htaccess (keep a backup of the original file.)

    See which code you need to remove before the pages at least load again. Once we know the problem code we can better figure out the issue.

    Comment

    Related Topics

    Collapse

    Working...