.htaccess problem
-
Hi:
After enabling permalink on my blog, WordPress automatically created a .htaccess file in the site’s root directory. Everything was working properly. Recently, I had to deal with some unfriendly visitors to my blog whom I’d like to ban from my site using .htaccess.
I downloaded the original htaccess file which looked like this
—-
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
—-and added the following lines after “# END WordPress.”
—-
order allow,deny
deny from IP
deny from IP
allow from all
—-After reuploading the modified htaccess file, I got an Internal Server Error and couldn’t access my blog anymore. I had to delete the htaccess file per ftp and re-activated permalink.
Any idea how I can include the ban codes in the htaccess file without causing a server error?
- The topic ‘.htaccess problem’ is closed to new replies.