How to set posts redirect to a new domain

I’m moving out a blog to a new domain, and redirect all posts specifically to a new domain.

http://olddomain.com/category/postname

should go to

http://newdomain.com/category/postname

Apache Server

On Apache that allows .htaccess, you can add this line on top of the file:

Nginx Server

On Nginx, add this line on server block configuration file:

Reload or restart Nginx for the change to take effect.

 

Linux, snippet, Uncategorized, Wordpress, , , , , Leave a comment

What You Have Todo if a Brute Force Attacking Your WordPress Sites

One of my server had cpu outage last week because of a script repeating to access wp-login.php file with hundreds of request per minute.

if you do tail -f access.log it will return repeating requests

I will share my steps to recover it;
Continue reading “What You Have Todo if a Brute Force Attacking Your WordPress Sites”

How To, Linux, WordpressLeave a comment