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>                    

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.