DirectoryIndex public/index.html

<IfModule mod_autoindex.c>
  Options -Indexes
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On

# Uploaded characters are stored in Game/data/characters (same as Node server).
# WAMP requests like /game-justic2/Game/img/characters/foo.png must resolve there.
RewriteRule ^img/characters/([A-Za-z0-9_.-]+\.(png|jpg|jpeg|gif|webp))$ data/characters/$1 [L,NC]

# ให้ /game-justic2/Game/lobby.html ชี้ไป Game/public/lobby.html บน WAMP
RewriteCond %{REQUEST_URI} !/public/ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ public/$1 [L]
</IfModule>
