-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added .htaccess file for Apache server.
- Loading branch information
Sivachidambaram. S
committed
Nov 6, 2015
1 parent
6a86331
commit 4498966
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |