Skip to content

Instantly share code, notes, and snippets.

View MasonSpeed's full-sized avatar
🤠

Mason Day MasonSpeed

🤠
View GitHub Profile
#!/bin/bash
# Loop through paths in the current directory
FILE=wp-config.php
for d in */; do
echo ""
echo "Entering $d..."
cd $d
if test -f "$FILE"; then
#!/bin/bash
FILE=wp-config.php
for d in */; do
# Just... yeah
if [ "$d" != "ottersbusinesshub.co.uk/" ]; then
if [ "$d" != "lilymaehomecare.com/" ]; then
echo ""
echo "Entering $d..."
<IfModule mod_headers.c>
<FilesMatch "\.(jpg|jpeg|png|gif|js|css|swf|woff|woff2|svg)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
</IfModule>