Skip to content

Commit

Permalink
Apache configuration altered to access without client
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivachidambaram. S committed Feb 11, 2016
1 parent 99d1343 commit 53ec930
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ Options -Indexes
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^client/img/([a-zA-Z_]*)/([a-zA-Z_]*)/([a-zA-Z0-9_\.]*)$ server/php/image.php?size=$1&model=$2&filename=$3 [NC]
RewriteRule ^ical/([0-9]*)/([a-zA-Z0-9]*).ics$ server/php/ical.php?id=$1&hash=$2 [NC]
RewriteRule ^client/download/([0-9]*)/([a-zA-Z0-9_\.]*)$ server/php/download.php?id=$1&hash=$2 [NC]
RewriteRule ^client/oauth_callback/([a-zA-Z0-9_\.]*)/([a-zA-Z0-9_\.]*)$ server/php/oauth_callback.php?plugin=$1&code=$2 [NC]
RewriteRule ^oauth/authorize$ server/php/authorize.php [NC]
RewriteRule ^client/img/([a-zA-Z_]*)/([a-zA-Z_]*)/([a-zA-Z0-9_\.]*)$ server/php/image.php?size=$1&model=$2&filename=$3 [L]
RewriteRule ^ical/([0-9]*)/([a-zA-Z0-9]*).ics$ server/php/ical.php?id=$1&hash=$2 [L]
RewriteRule ^download/([0-9]*)/([a-zA-Z0-9_\.]*)$ server/php/download.php?id=$1&hash=$2 [L]
RewriteRule ^oauth_callback/([a-zA-Z0-9_\.]*)/([a-zA-Z0-9_\.]*)$ server/php/oauth_callback.php?plugin=$1&code=$2 [L]
RewriteRule ^oauth/authorize$ server/php/authorize.php [QSA,L]
RewriteRule ^api/(.*)$ server/php/R/r.php?_url=$1 [QSA,L]
RewriteRule ^$ client/ [QSA,L]
RewriteRule ^(css|js|img|font|apps|locales)/(.*)$ client/$1/$2 [QSA,L]
RewriteRule ^favicon.ico$ client/favicon.ico [L]
RewriteRule ^apple-touch-icon(.*)$ client/apple-touch-icon$1 [L]
</IfModule>

0 comments on commit 53ec930

Please sign in to comment.