>

Using Git for DNS and DHCP Config Files

# sudo yum install git-core # git init Initialized empty Git repository in /.git/ # git add /var/named/chroot/var/named/zones/* # git commit -m 'Added DNS zone files' [master (root-commit) a8418bf] Added DNS zone files Committer: root <root@liminf03.motion.com> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly: git config –global user.name “Your Name” git config –global user.email you@example.com After doing this, you may fix the...
read more

Changing the Color of Links

Using the ElegantThemes eBusiness theme, the default color for links did not stand out and links were hard to see. Resolved by making them red. In the style.css file, for the child theme, added the following line of code: .home-post-wrap-2 a {color: #ff0000 !important; font-weight: bold;}
read more

Fun with mod_rewrite…

Today I had to create some specific/generic rewrite rules. The idea was to allow “motion.com,”www.motion.com,” “www.motion.com/index.html,” and “motion.com/index.html” all go to an index (domain for sale) page. However, let everything else forward to “learninginmotion.com.” So URLs like “www.motion.com/products/index.html” would forward to “www.learninginmotion.com/products/index.html.” The resulting rule was: RewriteCond %{REQUEST_URI} !^/index.html$ RewriteCond %{REQUEST_URI} !^/$ RewriteRule ^(.*)$...
read more