Enable WordPress maintenance mode
.maintenance file and include the following:
Place the file in the root of a WordPress installation.
The number is a UNIX timestamp. If the timestamp is less than 10 minutes ago, the “maintenance mode” screen will be displayed. After 10 minutes, WordPress bypasses maintenance mode and loads the site as normal.
Maintenance mode will also be bypassed if the file exists but is empty.
Use Apache Redirect for simple redirects
Sometimes mod_rewrite is overkill and you just need a simple redirect put in place:
So a request for “/foo/” returns a HTTP status code 302 (temporary redirect) pointing to “/bar/”.
Enable SSL on nginx
Somehow I’ve used nginx for years but never got around to setting up HTTPS on it until now.
Luckily it’s very simple. Here are the unique bits. Everything else was a pretty standard nginx server block:
highlightfeature accepts “apache” and “nginx” as languages.
- Safari doesn’t understand
transform, have to use