RewriteEngine On
DirectoryIndex index.html index.php
Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/api.+$ [NC]
RewriteCond %{REQUEST_FILENAME} (.+)index\.html$
RewriteRule ^(.*)$ /index.php [L]
test ! -d /var/backup/mysql/`date +%Y` && { mkdir -p /var/backup/mysql/`date +%Y` ; }
FILE=/etc/resolv.conf
if [[ -f "$FILE" ]]; then
echo "$FILE exist"
fi
find /tmp/test -type f -exec cat {} >> /tmp/out.txt \;
# 301 --- http://www.test3.com/faq.html?faq=13&layout=bob => bbq.html
RewriteCond %{QUERY_STRING} (^|&)faq\=13($|&)
RewriteCond %{QUERY_STRING} (^|&)layout\=bob($|&)
RewriteRule ^faq\.html$ /bbq.html? [L,R=301]