500 Internal Server Error after editing .htaccess

Hi I am having an internal server error. My last edit was with the .htaccess, route.php and a view page. I tried to restore all previous edits before the internal server error happened – still nothing changed. Here is the site I’m editing:

wwf.org.ph

Here is my .htaccess – maybe there’s a possible error I can’t spot.

# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch
RewriteEngine On

RewriteCond %{HTTP_HOST} ^www. [NC,OR]
RewriteCond %{THE_REQUEST} /wwf4/ [NC]
RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]
RewriteRule ^(?:wwf4/)?(.*)$ http://wwf.org.ph/$1 [NC,R=302,L]


RewriteRule ^(.*)bancas(.*)$ http://www.wwf.org.ph/bancas [L,R=301]
RewriteRule ^(.*)gift-center(.*)$ http://wwf.org.ph/giftcenter [L,R=301]
RewriteRule ^(.*)gift-of-light(.*)$ http://www.wwf.org.ph/golight [L,R=301]
RewriteRule ^(.*)wwa_history(.*)$ http://www.wwf.org.ph/history [L,R=301]
RewriteRule ^(.*)publications(.*)$ http://wwf.org.ph/media-files [L,R=301]
RewriteRule ^(.*)eh(.*)$ http://wwf.org.ph/earthhour [L,R=301]
RewriteRule ^(.*)adapting-climate(.*)$ http://wwf.org.ph/wwd_adapting-to-climate-change [L,R=301]
RewriteRule ^(.*)/(.*)/ac_donate(.*)$ http://wwf.org.ph/donate [L,R=301]
RewriteRule ^(.*)/(.*)/ac_be-a-corp-partner(.*)$ http://wwf.org.ph/ac_be-a-corp-partner [L,R=301]

#RewriteRule ^(.*)/(.*)/wwd_where-we-work(.*)$ http://wwf.org.ph/where-we-work/ [L,R=301]
RewriteRule ^(.*)/(.*)/wwa_leadership(.*)$ http://wwf.org.ph/wwa_leadership [L,R=301]
RewriteRule ^(.*)/(.*)/wwa_meet-the-pandas(.*)$ http://wwf.org.ph/wwa_meet-the-pandas [L,R=301]
RewriteRule ^(.*)/(.*)/newsroom(.*)$ http://wwf.org.ph/newsroom [L,R=301]
RewriteRule ^(.*)take-action/donate(.*)$ http://wwf.org.ph/ac_donate [L,R=301]


RewriteRule ^(.*)bancas(.*)$ http://wwf.org.ph/bancas [L,R=301]
RewriteRule ^(.*)wwd_climate-solutions(.*)$ http://wwf.org.ph/climate-solutions [L,R=301]
RewriteRule ^(.*)wwd_reducing-footprint(.*)$ http://wwf.org.ph/climate-solution/reducing-footprint [L,R=301]
RewriteRule ^(.*)wwd_energy-efficiency(.*)$ http://wwf.org.ph/renewable-energy/energy-efficiency [L,R=301]

RewriteRule ^(.*)wwa_meet-the-pandas(.*)$ http://wwf.org.ph/who-we-are/meet-the-pandas [L,R=301]

RewriteRule ^(.*)actnow(.*)$ http://wwf.org.ph/act-now [L,R=301]
RewriteRule ^(.*)ac_act-now(.*)$ http://wwf.org.ph/act-now [L,R=301]
RewriteRule ^(.*)ac_be-a-corp-partner(.*)$ http://wwf.org.ph/act-now/be-a-corporate-partner [L,R=301]
RewriteRule ^(.*)ac_checkout-for-nature(.*)$ http://wwf.org.ph/act-now/checkout-for-nature [L,R=301]
RewriteRule ^(.*)ac_idp-faq(.*)$ http://wwf.org.ph/frequently-asked-questions [L,R=301]
RewriteRule ^(.*)ac_live-green(.*)$ http://wwf.org.ph/tips-on-living-green [L,R=301]
RewriteRule ^(.*)ac_major-gifts(.*)$ http://wwf.org.ph/invest-in-philippines-fund-for-nature [L,R=301]
RewriteRule ^(.*)ac_ranger-station(.*)$ http://wwf.org.ph/invest-in-philippines-fund-for-nature/tubbataha-ranger-station [L,R=301]
RewriteRule ^(.*)ac_thank-you(.*)$ http://wwf.org.ph/thank-you [L,R=301]

RewriteRule ^(.*)wwd_where-we-work(.*)$ http://wwf.org.ph/what-we-do/where-we-work [L,R=301]
RewriteRule ^(.*)wwd_what-we-do(.*)$ http://wwf.org.ph/what-we-do [L,R=301]
RewriteRule ^(.*)wwd_water(.*)$ http://wwf.org.ph/what-we-do/water [L,R=301]
RewriteRule ^(.*)wwd_tubbataha-reefs(.*)$ http://wwf.org.ph/what-we-do/food/tubbataha-reefs [L,R=301]
RewriteRule ^(.*)wwd_teresa-rizal(.*)$ http://wwf.org.ph/what-we-do/water/teresa-rizal [L,R=301]
RewriteRule ^(.*)wwd_tawi-tawi(.*)$ http://wwf.org.ph/what-we-do/food/tawi-tawi [L,R=301]
RewriteRule ^(.*)wwd_sustainable-tuna(.*)$ http://wwf.org.ph/what-we-do/food/sustainable-tuna-fisheries [L,R=301]
RewriteRule ^(.*)wwd_sustainable-live-reef-fish-trade(.*)$ http://wwf.org.ph/what-we-do/food/sustainable-live-reef-fish-trade [L,R=301]
RewriteRule ^(.*)wwd_sustainable-energy(.*)$ http://wwf.org.ph/what-we-do/energy/sustainable-energy [L,R=301]
RewriteRule ^(.*)wwd_sustainable-consumption(.*)$ http://wwf.org.ph/what-we-do/food/sustainable-consumption [L,R=301]
RewriteRule ^(.*)wwd_sustainable-construction(.*)$ http://wwf.org.ph/what-we-do/climate-solutions/reducing-footprint/sustainable-construction [L,R=301]
RewriteRule ^(.*)wwd_sta-rosa(.*)$ http://wwf.org.ph/what-we-do/water/sta-rosa [L,R=301]
RewriteRule ^(.*)wwd_seize-your-power(.*)$ http://wwf.org.ph/what-we-do/energy/seize-your-power [L,R=301]


RewriteRule ^(BRstudy)/?$ downloads/pubs/BPI_BRAM_CC.pdf
RewriteRule ^(BRStudy)/?$ downloads/pubs/BPI_BRAM_CC.pdf
RewriteRule ^(brstudy)/?$ downloads/pubs/BPI_BRAM_CC.pdf

# GZip Compression
# compress text, html, javascript, css, xml:
#
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

## EXPIRES CACHING ##
<IfModule mod_expires.c>

    ExpiresActive on
    ExpiresDefault                                      "access plus 1 month"

  # CSS
    ExpiresByType text/css                              "access plus 1 year"

  # Data interchange
    ExpiresByType application/json                      "access plus 0 seconds"
    ExpiresByType application/xml                       "access plus 0 seconds"
    ExpiresByType text/xml                              "access plus 0 seconds"

  # Favicon (cannot be renamed!)
    ExpiresByType image/x-icon                          "access plus 1 week"

  # HTML components (HTCs)
    ExpiresByType text/x-component                      "access plus 1 month"

  # HTML
    ExpiresByType text/html                             "access plus 0 seconds"

  # JavaScript
    ExpiresByType application/javascript                "access plus 1 year"

  # Manifest files
    ExpiresByType application/x-web-app-manifest+json   "access plus 0 seconds"
    ExpiresByType text/cache-manifest                   "access plus 0 seconds"

  # Media
    ExpiresByType audio/ogg                             "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/mp4                             "access plus 1 month"
    ExpiresByType video/ogg                             "access plus 1 month"
    ExpiresByType video/webm                            "access plus 1 month"

  # Web feeds
    ExpiresByType application/atom+xml                  "access plus 1 hour"
    ExpiresByType application/rss+xml                   "access plus 1 hour"

  # Web fonts
    ExpiresByType application/font-woff                 "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject         "access plus 1 month"
    ExpiresByType application/x-font-ttf                "access plus 1 month"
    ExpiresByType font/opentype                         "access plus 1 month"
    ExpiresByType image/svg+xml                         "access plus 1 month"

</IfModule>
## EXPIRES CACHING ##

RewriteCond $1 !^(index.php|images|robots.txt|css|images|downloads|img|images|js|videos)
RewriteRule ^(.*)$ index.php/$1 [L]

I can ping the host. Also I am accessing this on an ftp server, and was still able to get the files in it. The route.php seems there’s no error, same as the view page i was previously editing. Please help meeee T_T


Source: .htaccess

Leave a Reply