← Files uCozARCHIVED FILE

skills/ucoz-server-scripts-skill/templates/php/.htaccess

511 Bytes · Nov 30, 2026 · 07:43 UTC

↓ Download file

# domains/{domain}/public_html/{name}/.htaccess
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  # private code and dotfiles
  RewriteRule ^lib/ - [F,L]
  RewriteRule (^|/)\.(?!well-known/) - [F,L]
  # clean routes: everything that is not a real file goes to index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L,QSA]
</IfModule>

<FilesMatch "\.(log|sql|json|jsonl|bak|ini|sh|md|lock)$|\.bak-">
  Require all denied
</FilesMatch>

SHA-256: 9a41a61ff4fc00b3df30335e19557e8d0298b5554adc9f42ca0e8fb34da59c2e