<Files config.php>
Require all granted	
</Files>

# SEO-friendly URL rewrites
RewriteEngine On

# Profile SEO URL: /profile/org-slug → profile.php?slug=org-slug
RewriteRule ^profile/([a-zA-Z0-9_-]+)/?$ profile.php?slug=$1 [L,QSA]

# Password reset SEO URL: /reset-password/TOKEN → reset-password.php?token=TOKEN
RewriteRule ^reset-password/([a-zA-Z0-9]+)/?$ reset-password.php?token=$1 [L,QSA]

# Don't rewrite existing files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
