Skip to content

Commit

Permalink
Added .htaccess file for Apache server.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivachidambaram. S committed Nov 6, 2015
1 parent 6a86331 commit 4498966
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DirectoryIndex index.html
Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
# If installed in local or under a path say /restyaboard /: (otherwise, doesn't need RewriteBase)
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^client/img/([a-zA-Z_]*)/([a-zA-Z_]*)/([a-zA-Z0-9_\.]*)$ server/php/R/image.php?size=$1&model=$2&filename=$3 [NC]
RewriteRule ^ical/([0-9]*)/([a-zA-Z0-9]*).ics$ server/php/R/ical.php?id=$1&hash=$2 [NC]
RewriteRule ^client/download/([0-9]*)/([a-zA-Z0-9_\.]*)$ server/php/R/download.php?id=$1&hash=$2 [NC]
RewriteRule ^api/(.*)$ server/php/R/r.php?_url=$1 [QSA,L]
</IfModule>

0 comments on commit 4498966

Please sign in to comment.