ntpdate ntp.uiuc.edu
Other
Merge files using command line
copy *.csv mynewfilename.csv
Apache VHost Redirect IP
<VirtualHost 65.60.41.xxx:80>
DocumentRoot /var/www/adam/wakawaka.com
ServerName wakawaka.com
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^173.160.32.xxx$
RewriteRule ^(.*)$ /var/www/adam/wakawaka-2.com/$1 [NC,L]
<Directory /var/www/adam/wakawaka.com>
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Redirect .html to non
RewriteEngine On
RewriteBase /
#redirect to remove the .html extension
RewriteRule ^(.+).html$ $1 [L,NC,R=301]
#This snippet is experimental, the above breaks some of the media library .html requests - This seems to work but still testing
#redirect to remove the .html extension
RewriteCond %{REQUEST_URI} !^/wp-includes
RewriteCond %{REQUEST_URI} !^/wp-admin
RewriteCond %{REQUEST_URI} !^/wp-content
RewriteRule ^(.+).html$ $1 [L,NC,R=301]
Restore Firefox RSS Feed
//No Snippet
Block Robots
#No Index
Header set X-Robots-Tag "noindex, nofollow"
Apache Server Info
if you put the following in /etc/apache2/http.conf
<Location /server-status>
SetHandler server-status
Order deny,allow
Allow from xxx.xxx.xxx.xxx
</Location>
ExtendedStatus On
Set server ENV
SetEnv AUCTION_CHANGED "0"
301 with same path
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.yeoldedomain.com$
RewriteRule (.*) http://hotnewdomain.com/$1 [R=301,L]
Apache Servername
ServerName myservername