Vosie/CardsService/master/.htaccess - Htaccess File

Vosie/CardsService/master/.htaccess

# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php

SetEnv no-gzip 1

RewriteEngine On
# rewrite for animals
RewriteRule ^wikicards/([0-9a-z-A-Z]{2,})/animals/([0-9a-zA-Z-_]+).json$ get/dump.php?c=animals&l=$1&t=$2 [QSA,L]
# rewrite for country
RewriteRule ^wikicards/([0-9a-z-A-Z]{2,})/country/([0-9a-zA-Z-_]+).json$ get/dump.php?c=country&l=$1&t=$2 [QSA,L]

# rewrite for animals pronunciations
RewriteRule ^wikicards/([0-9a-z-A-Z]{2,})/animals/([0-9a-zA-Z-_]+).mp3$ get/dump_pronunciation.php?c=animals&l=$1&t=$2 [QSA,L]
# rewrite for country pronunciations
RewriteRule ^wikicards/([0-9a-z-A-Z]{2,})/country/([0-9a-zA-Z-_]+).mp3$ get/dump_pronunciation.php?c=country&l=$1&t=$2 [QSA,L]

On Github License

Files

Download PDF of Htaccess file
no-gzip

Comments

Apache