Do You Want to Learn Marketing or Coding? Do You Want to Learn Marketing or Coding?

WordPress Htaccess

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Here are my favorite .htaccess codes for WordPress

RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*domainname.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

This one helps block spammers from sniffing out your wordpress and post random comments.

RewriteEngine On

order allow,deny
deny from all

Helps protect your .htaccess from intruders.

I Really Need

Reviewing nerdy stuff is expensive.

Consider clicking on this ad & buying that item you REALLY wanted from Amazon.

It helps a ton!

Leave Your Thoughts