1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-05-22 18:11:18 +02:00
Lexiconga/src/php/.htaccess

13 lines
716 B
ApacheConf
Raw Normal View History

RewriteEngine On # Turn on the rewriting engine
2019-05-30 11:20:02 -06:00
RewriteRule ^view/([0-9]+)/([0-9]+)/?$ api/router.php?view=word&dict=$1&word=$2 [NC,L] # Handle word ids.
2019-05-30 11:20:02 -06:00
RewriteRule ^([0-9]+)/([0-9]+)/?$ api/router.php?view=word&dict=$1&word=$2 [NC,L] # Handle word ids.
2019-05-30 11:20:02 -06:00
RewriteRule ^view/([0-9]+)/?$ api/router.php?view=dictionary&dict=$1 [NC,L] # Handle dictionary ids.
2019-05-30 11:20:02 -06:00
RewriteRule ^([0-9]+)/?$ api/router.php?view=dictionary&dict=$1 [NC,L] # Handle dictionary ids.
#RewriteRule ^issues/?$ https://github.com/Alamantus/Lexiconga/issues [R=301,L] # Shorten issues url.
#RewriteRule ^updates/?$ https://github.com/Alamantus/Lexiconga/releases [R=301,L] # Shorten updates url.