opengovfoundation/uscode.org/master/htdocs/api/.htaccess
Options -Multiviews RewriteEngine On RewriteBase /api/ # Specify the default version number here. RewriteRule .* - [E=VERSION:1.0] # If the first segment of the URL is an alpha string, rather than a version # number, then insert the current version number. RewriteRule ^([a-z]+)/(.*)$ %{ENV:VERSION}/$1/$2
Files
![](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/opengovfoundation/uscodeorg-htdocs-api-htaccess.png)