koichi

Restyaboard .htaccess

Jul 11th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. DirectoryIndex index.html index.php
  2. Options -Indexes
  3.  
  4. <IfModule mod_rewrite.c>
  5. RewriteEngine On
  6. # If installed in local or under a path say /restyaboard /: (otherwise, doesn't need RewriteBase)
  7. RewriteBase /
  8. RewriteCond %{REQUEST_FILENAME} !-d
  9. RewriteCond %{REQUEST_FILENAME} !-f
  10. RewriteRule ^client/img/([a-zA-Z_]*)/([a-zA-Z_]*)/([a-zA-Z0-9_\.]*)$ server/php/image.php?size=$1&model=$2&filename=$3 [L]
  11. RewriteRule ^ical/([0-9]*)/([0-9]*)/([a-zA-Z0-9]*).ics$ server/php/ical.php?id=$1&user_id=$2&hash=$2 [L]
  12. RewriteRule ^download/([0-9]*)/([a-zA-Z0-9_\.]*)$ server/php/download.php?id=$1&hash=$2 [QSA,L]
  13. RewriteRule ^oauth_callback/([a-zA-Z0-9_\.]*)/([a-zA-Z0-9_\.]*)$ server/php/oauth_callback.php?plugin=$1&code=$2 [L]
  14. RewriteRule ^oauth/authorize$ server/php/authorize.php [QSA,L]
  15. RewriteRule ^api/(.*)$ server/php/R/r.php?_url=$1 [QSA,L]
  16. RewriteRule ^$ client/ [QSA,L]
  17. RewriteRule ^(css|js|img|font|apps|locales)/(.*)$ client/$1/$2 [QSA,L]
  18. RewriteRule ^favicon.ico$ client/favicon.ico [L]
  19. RewriteRule ^manifest.json$ client/manifest.json [L]
  20. RewriteRule ^apple-touch-icon(.*)$ client/apple-touch-icon$1 [L]
  21. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment