# Apache configuration for Stremio API
# Redirects and rewrites for the Stremio API endpoints

# Enable Rewrite Engine
RewriteEngine On

# API endpoints - handles both v1 and v2
RewriteRule ^v2/create$ index.php?v2=1 [QSA,L]
RewriteRule ^v2/read$ index.php?v2=1 [QSA,L]
RewriteRule ^create$ index.php [QSA,L]
RewriteRule ^read$ index.php [QSA,L]