A great post explaining each line of WordPress’ htaccess file.
http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/
A Log of Coding Solutions
by Webhead
A great post explaining each line of WordPress’ htaccess file.
http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/
by Webhead
A great way to take more control of your wp-cron and also slightly speed up wordpress is to disable cron and scheduled a cron job on your server to run wp-cron.php. You just need a server that supports cron jobs.
In wp-config.php add:
define(‘DISABLE_WP_CRON’, true);
Be careful though, sometimes this has a negative effect on your website. For example if you have subscriptions from woocommerce, each user’s subscription is checked on every 12 hours. If you have a ton of users, each of these users has a cron job waiting to run throughout the hour. These jobs will slow down your server if you run wp-cron too far apart.
Setting up your cron command can look similar to:
*/30 * * * * wget http://example.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1
source: http://bitswapping.com/2010/10/using-cron-to-trigger-wp-cron-php/
by Webhead
I’ll be updating this post as I find more and better explanations to hardening wordpress. The more secure, the better. Some things to keep in mind when you are trying to secure your wordpress installation.
WordPress codex has many good solutions. This post is will only repeat those solutions if there is more explanation.
http://codex.wordpress.org/Hardening_WordPress
by Webhead
The OSCommerce admin pages were working fine a couple months ago. Now I go to it and it shows a 401 error.
The problem was that the htaccess file had a rewrite added to it to always include www to the address. Apparently the SEO guy did this. The solution is to update the OSCommerce configuration files. Meaning add “www” to the address variables in
includes/configure.php
includes/admin/configure.php
source: http://forums.oscommerce.com/topic/341940-how-to-change-htaccess-to-rewrite-the-url-hard/
http://forums.jaguarpc.com/design-development/24039-just-installed-oscommerce-admin-links-giving-401-authentication-failed.html
keywords: oscommerce 401
by Webhead
I had my macbook open, it went to sleep and I couldn’t wake it up. After holding down the powerbutton for over 10 seconds, it turned on. Everything was fine until I tried to open the MAMP home page. MySQL couldn’t start. the error logs showed:
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
120904 14:51:31 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
Solution is to find the mysqlid process and end it. Then restart MAMP and things should be good to go. more details on this great post:
When visiting phpMyAdmin you get the following errors:
“Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.”
Clear your browser cache.
thanks to: http://stackoverflow.com/questions/5013118/cannot-start-session-without-errors-in-phpmyadmin
keywords: mamp check that you do not already have another mysqlid process
by Webhead
One of the metrics for Search Engine Optimization is the time it takes to load a page. With Google’s PageSpeed tool, you can see if your page is loading optimally. One of the ways to better your page loading is by leveraging browser cache. The article below explains it well. What I did was a little simpler. I basically just bypassed all the ExpiresByType and just put the ExpiresDefault in my .htaccess.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 2 week"
</IfModule>
keywords: leverage browser caching
source: http://thomasgriffinmedia.com/blog/2010/11/how-to-leverage-browser-caching-in-wordpress-via-htaccess/