# Pretty URLs (Apache + mod_rewrite)
<IfModule mod_rewrite.c>
RewriteEngine On

# /executor -> executor.php, /executor/page/2 -> executor.php?page=2
RewriteRule ^executor/page/([0-9]+)/?$ executor.php?page=$1 [L,QSA]
RewriteRule ^executor/?$ executor.php [L,QSA]

# /about /contact /disclaimer /terms /dmca /privacy -> page.php
RewriteRule ^(about|contact|disclaimer|terms|dmca|privacy)/?$ page.php?p=$1 [L,QSA]

# /delta-executor -> detail.php?e=delta-executor
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9-]+)/?$ detail.php?e=$1 [L,QSA]
</IfModule>

# Fallback for servers without mod_rewrite: query-string URLs still work
# (index.php, executor.php?page=2, detail.php?e=slug, page.php?p=about)
