dooke/Influence-Networks/master/.htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# one resource with number ID
RewriteRule ^api/([a-z]+)/([0-9]+)/?$ /index.php?api&resource=$1&id=$2 [L,NC,QSA]
# one resource with MID
RewriteRule ^api/([a-z]+)(/[a-z0-9_-]+/[a-z0-9_-]+)/?$ /index.php?api&resource=$1&id=$2 [L,NC,QSA]
# resources
RewriteRule ^api/([a-z]+)/?$ /index.php?api&resource=$1&$2 [L,NC,QSA]
# redirection to the root
RewriteRule ^api/?$ / [R,NC]
RewriteRule ^page/?$ / [R,NC]
# main pages
RewriteRule ^contribute/?$ /index.php?screen=relation-add [L,NC,QSA]
RewriteRule ^review/?$ /index.php?screen=relation-review [L,NC,QSA]
RewriteRule ^explore/?$ /index.php?screen=relation-visualize [L,NC,QSA]
RewriteRule ^page/([-_a-z]+)/?$ /index.php?screen=page&id=$1 [L,NC,QSA]
On Github License
Files