You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
450 B
16 lines
450 B
3 years ago
|
|
||
|
# si le module mod-rewrite est activé
|
||
|
<IfModule mod_rewrite.c>
|
||
|
# init du moteur
|
||
|
RewriteEngine On
|
||
|
# url de départ de l'api
|
||
|
RewriteBase /
|
||
|
# si ce n'est pas index.php
|
||
|
RewriteRule ^index\.php$ - [L]
|
||
|
# si le fichier existe pas
|
||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||
|
# si le dossier existe pas
|
||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
# je renvoie vers l'index de lapi
|
||
|
RewriteRule . /api/index.php [L]
|
||
|
</IfModule>
|