Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (5 sloc) 305 Bytes
RewriteEngine On
# Change the RewriteBase to match your setup, e.g. / if you run the API under a subdomain or /PersonalAPI/ if you run it in localhost/PersonalAPI/
RewriteBase /
RewriteRule ^v1/([^\.]+).(xml|json|atom)$ api.php?url=$1&format=$2 [QSA,L]
RewriteRule ^v1/([^\.]+)$ api.php?url=$1 [QSA,L]