Browse Source

Des morceaux de htaccess manquants (le test du plugin Offline)

gestion_archives
Matthieu Marcillaud 2 years ago
parent
commit
0e6e109a9f
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      htaccess.txt

+ 8
- 1
htaccess.txt View File

@ -52,6 +52,13 @@ RewriteBase /
# bloquer les acces aux repertoires .svn/ (SPIP, plugins, squelettes...)
RewriteRule ^(.*/)?\.svn/ - [F]
# Permettre les mises en cache CORS
Header set Access-Control-Allow-Origin "*"
RewriteCond %{REQUEST_URI} offline\.api\.(.+)$
RewriteCond local/offline/%1 -f
RewriteRule ^offline\.api\.(.+)$ local/offline/$1 [QSA,L,skip=100]
################ GESTIONS DES URLS SPIP #######################
# redirections des anciennes url en erreur 404
@ -138,7 +145,7 @@ RewriteRule ^([1-9][0-9]*)$ spip.php?action=redirect&type=article&status=301
# http://site/xmlrpc.api
# http://site/atom.api/articles/1234
RewriteRule ^([\w]+)\.api(/(.*))?$ spip.php?action=api_$1&arg=$3 [QSA,L]
RewriteRule ^([\w]+)\.api([/.](.*))?$ spip.php?action=api_$1&arg=$3 [QSA,L]
# Fin des APIs
###


Loading…
Cancel
Save