# Enable URL rewriting
RewriteEngine On
RewriteBase /

# Redirect /Survey (case-insensitive) to survey.html
RewriteRule ^Survey$ survey.html [L,NC]

# Redirect workshop routes
RewriteRule ^workshop$ workshop.html [L,NC]
RewriteRule ^funding-workshop$ funding-workshop.html [L,NC]
RewriteRule ^register$ register.html [L,NC]
RewriteRule ^spectra$ spectra.html [L,NC]
RewriteRule ^rspectra$ rspectra.html [L,NC]

# Clean URL:
# mydomain.com/project/halal-partnership
RewriteRule ^projects/halal-partnership$ projects/halal-partnership-proposal.html [L,NC]
RewriteRule ^projects/sfam$ projects/sfam.html [L,NC]

# Don't rewrite files-share requests - let them pass through to the subdirectory
RewriteCond %{REQUEST_URI} !^/files-share
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d