September 18th, 2009
admin
To redirect ALL files on your domain use this in your
.htaccess file if you are on a linux web server:
redirectMatch 301 ^(.*)$ http://www.site.net
redirectMatch permanent ^(.*)$ http://www.site.net
You can also use one of these in your .htaccess file:
redirect 301 /index.php http://www.site.net/index.php
redirect permanent /index.php http://www.site.net/index.php
redirectpermanent /index.php http://www.site.net/index.php
If you need to redirect http://site.net to http://www.site.net and you’ve got mod_rewrite enabled on
your server you can put this in your .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^site\.net
RewriteRule ^(.*)$ http://www.site.net/$1 [R=permanent,L]
September 11th, 2009
admin
Is it possible to get Awstats to send a monthly report with some basic stats to Email?
Script to send last months AwStats report to an email address: www.sitepoint.com/forums/showthread.php?t=275042
This scipt will run on a web server with CPanel. It uses the CPanel system to log in and get the report page from AwStats for the previous month.
To use this script:
- change the strings located in the first block of code to match information for your domain and CPanel account.
- Install the two script files into a location on your web server outside of the public html area (you don’t want someone accidently seeing the account details).
- Then set up a cron job to run the php program sometime after the first of the month. The command for the cron job might look like:php -q /home/userid/scripts/stats.php
Based on a script from Ronan Magee (ronanmagee on the SitePoint.com forum)
Modified by David K. Goodwin (dkg2000 on the SitePoint.com forum)
September 10th, 2009
admin
I was recently surprised to see that my wordpress install folders have swelled up in size like anything. I have 3 installs of WP and I noticed that in the root of each install there were dump files with a name pattern “core.*” and with sizes to the tune of 12MB each.
core files come from a core dump. A core dump can happen for lots of reasons, but in shared hosting it generally occurs if:
1. Your site software is not compatible with the latest server software versions.
2. The server software itself was/is having issues.
September 10th, 2009
admin
Private Registration hides your personal information and helps protect you against domain-related spam, identity theft, fraud, cyber-stalkers and much more.
Don’t leave your personal information exposed any longer! Protect yourself with FREE Private Registration when you register or transfer five domain names. Hurry, act now!
Private Registration More Info