
# Trace:
# (!) file gets big quickly, remove in prod environments:
# RewriteLog "/home/arnold/public_html/rest/rewrite.log"
# RewriteLogLevel 9

# RewriteEngine On

# See 
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html
# https://wiki.apache.org/httpd/RewriteFlags/
# NC = No Case
# QSA  https://wiki.apache.org/httpd/RewriteFlags/QSA 
# append query string with what was pulled from original URL
# L Last rule (if matched, then done)

RewriteCond %{REQUEST_URI} !(.*)\.(css|js|htc|pdf|jpg|jpeg|gif|png|ico)$ [NC]
# RewriteRule ^([^\.]+)$ api.php?q=$1 [QSA,L]

RewriteRule api/v1/(.*)$ api/v1/api.php?request=$1 [QSA,NC,L]

