I just discovered this rewrite rule that will remove all trailing slashes from URLs in Nginx. With the rule in place, you can force all requests for http://example.com/about/ to use http://example.com/about.
rewrite ^/(.*)/$ /$1 permanent;
I just discovered this rewrite rule that will remove all trailing slashes from URLs in Nginx. With the rule in place, you can force all requests for http://example.com/about/ to use http://example.com/about.
rewrite ^/(.*)/$ /$1 permanent;
Empty index.php for plugins directory
via #8699 (Empty index.php for plugins dir) – WordPress Trac.
Good to see this is now part of WordPress. I always did it manually for my sites.
If you want to post to Twitter using the linux command line, you can use this little bash script:
#!/bin/bash
username=YourUsernameHere
password=YourPasswordHerecurl -u $username:$password -d status="$1" http://twitter.com/statuses/update.xml
Add it to a file called “twitter” in the ~/bin directory of your home directory.
You may have to refresh your bash profile by running one of these commands:
. ~/.profile
. ~/.bash_profile
Enjoy!
I just logged into Feedburner and was amazed that my Woot product feed has 243 subscribers!
![]()
Do you want to join the 243 people? Subscribe here!
Blogging platform JournalSpace (which I’d never heard of to date) has ceased to be, following a wipe-out of the main database for which there was no back-up in place. According to the JournalSpace blog, the database was overwritten as a result of a malicious act from a disgruntled ex-employee.
via JournalSpace Drama: All Data Lost Without Backup, Company Deadpooled.
It’s easy and inexpensive to develop a comprehensive backup system. Why was this allowed to happen?