-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_.htaccess
executable file
·29 lines (24 loc) · 934 Bytes
/
_.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
##
# Little Software Stats .htaccess file
#
# An open source program that allows developers to keep track of how their software is being used
#
# @package Little Software Stats
# @author Little Apps
# @copyright Copyright (c) 2011, Little Apps
# @license http://www.gnu.org/licenses/gpl.html GNU General Public License v3
# @link http://little-apps.org
# @since Version 0.1
##
# Prevent directory indexing
Options -Indexes
# Turn on mod_rewrite
RewriteEngine On
# The path to your Little Software Stats installation
# (Comment this if its installed in the root directory of your website)
RewriteBase /stats/
# Clean URLs for easier navigation
# http://[...]/<APPLICATION ID>/<VERSION>/<DAY,WEEK,MONTH>/<PAGE>/<START DATE>/<END DATE>
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ index.php?id=$1&ver=$2&graphBy=$3&page=$4&start=$5&end=$6
# XML or JSON API
RewriteRule ^api.(xml|json)$ api.php?type=$1