What's wrong with our .htaccess?
-
It looks like there is something wrong with our .htaccess code, whenever we add .txt to the end of the .htaccess file name, the site runs perfectly, however, enable the .htaccess file – we get the error 500 internal server error message.
Here is all of the .htaccess:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress order allow,deny deny from 197.0.130.4 deny from 41.224.0.0 - 41.231.255.255 deny from 46.36.198.91 - 46.36.198.95 deny from 67.216.163.112 - 67.216.163.127 deny from 80.85.27.200 - 80.85.27.207 deny from 81.31.195.216 - 81.31.195.219 deny from 86.66.13.96 - 86.66.13.111 deny from 192.68.138.0 - 192.68.138.255 deny from 193.95.0.0 - 193.95.127.255 deny from 196.203.0.0 - 196.203.255.255 deny from 196.216.156.0 - 196.216.159.255 deny from 197.0.0.0 - 197.31.255.255 deny from 207.65.70.32 - 207.65.70.47 deny from 207.65.70.80 - 207.65.70.95 deny from 207.65.70.144 - 207.65.70.151 deny from 207.65.71.48 - 207.65.71.63 deny from 208.114.116.184 - 208.114.116.191 deny from 213.150.160.0 - 213.150.191.255 deny from 216.153.65.0 - 216.153.65.63 allow from all #Expires Headers ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 #New Hotlinking RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?stmaryswestbank\.org.uk/ [NC] RewriteCond %{HTTP_REFERER} !^http://(.+\.)?translate\.googleusercontent\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://lh3.ggpht.com/_JZOYQPGSOqk/TT3OlnoTDuI/AAAAAAAAAC0/ogbgBQlzbn8/hotlinker.png [L] #Compress text, html, javascript, css, xml: 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 #Disable Directory Browsing Options -Indexes #Options FollowSymLinks Indexes Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} (\"|%22).*(\>|%3E|<|%3C).* [NC] RewriteRule ^(.*)$ log.php [NC] RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC] RewriteRule ^(.*)$ log.php [NC] RewriteCond %{QUERY_STRING} (javascript:).*(\;).* [NC] RewriteRule ^(.*)$ log.php [NC] RewriteCond %{QUERY_STRING} (\;|\’|\"|\%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if).* [NC] RewriteRule ^(.*)$ log.php [NC] RewriteRule (,|;|<|>|’|) /log.php [NC]Can anyone see what is wrong with it? Or suggest a way to fix this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘What's wrong with our .htaccess?’ is closed to new replies.