nginx Rewrite Rule:enforce NO www and enforce www

by tant 13. August 2010 13:06

# enforce www (exclude certain subdomains)
if ($host !~* ^(www|subdomain))
{
 rewrite ^/(.*)$ $scheme://www.$host/$1 permanent;
}

# enforce NO www
if ($host ~* ^www\.(.*))
{
set $host_without_www $1;
rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent;
}

Tags:

SEO | Tips

How To Turn On XML-RPC in WordPress

by tant 10. August 2010 06:00

XML-RPC (which stands for eXtensible Markup Language Remote Procedure Call) is a powerful way to manage a blog. Using it, you can post articles, comments, read posts and category lists, and more. In fact, our soft auto countent generator also use it:)

since WordPress 2.6  XML-RPC is turned OFF by default. Now, you have to turn XML-RPC or Atom ON for it to work.

 go to Admin’s Settings; Writing; Remote Publishing and check the protocols for ‘Atom’, ‘XML-RPC’, or both.

 

Tags: ,

Tips

Attention: if you are coolhandle.com customer

by tant 9. August 2010 09:58

coolhandle.com No backup service.

Their entire system problems leading to me lost a month's data and web can not access with 5days.

if you are coolhandle.com customer.remember that backup your date Timely and Find a Secondary host.

at last thank god,I backup once a month,Otherwise my loss is more serious.

Tags:

General

Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen | Modified by Mooglegiant

About the ME

Im a Chinese webmaster but im not suck