RewriteEngine On
RewriteRule ^s/([a-zA-Z0-9]{6})$ s.php?c=$1 [L,QSA]
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "DENY"
Header set X-XSS-Protection "1; mode=block"
Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
<FilesMatch "\.(jpg|jpeg|png|gif|webp|svg|css|js|woff|woff2)$">
<IfModule mod_headers.c>
Header set Cache-Control "public, max-age=2592000"
</IfModule>
</FilesMatch>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
</IfModule>
<FilesMatch "^\.">
Require all denied
</FilesMatch>
