Jump to content

Rewrite Rule and 500 Internal Server Error


mcmuney

Recommended Posts

This is my .htaccess file, but whenever I add RewriteEngine ON, I get a 500 Internal Server Error, how can I fix this?

 

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4
RewriteRule ^(.*) /index.php
RewriteRule ^profile/(.*)$ /social_mem_profile.php?scm_mem_id=$1
<Limit GET HEAD POST>
order allow,deny
deny from 41.206.64.0/19
deny from 41.207.0.0/19
deny from 41.207.192.0/19
deny from 196.47.128.0/18
deny from 196.201.64.0/19
deny from 196.223.4.0/24
deny from 213.136.96.0/19
deny from 213.150.192.0/19
deny from 41.208.128.0/18
deny from 196.1.92.0/24
deny from 196.1.93.0/24
deny from 196.1.94.0/24
deny from 196.1.95.0/24
deny from 196.1.96.0/24
deny from 196.1.97.0/24
deny from 196.1.98.0/24
deny from 196.1.99.0/24
deny from 196.1.100.0/24
deny from 196.207.192.0/18
deny from 213.154.64.0/19
allow from all
</LIMIT>                    

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.