Htaccess File

titusf/dota-inventory/dev/app/api/.htaccess

QUERY_STRING
RewriteEngine on

# Capture the query string parameter after action 
RewriteCond %{QUERY_STRING} action=(w+)
# Use the string to construct a file: XXXXX.json (without appending query string) 
RewriteRule ^action.php %1.json? [L]
Exit mobile version