Update -> refactor and optimize UI , code ,...
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Options -Indexes
|
||||
DirectoryIndex index.php
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Route /view/{id} -> view.php?id={id} (GET and POST)
|
||||
RewriteCond %{REQUEST_METHOD} GET [OR]
|
||||
RewriteCond %{REQUEST_METHOD} POST
|
||||
RewriteRule ^view/([a-f0-9]+)/?$ view.php?id=$1 [L,QSA]
|
||||
|
||||
# Block direct access to .env and sensitive files
|
||||
RewriteRule ^(\.env|\.git) - [F,L]
|
||||
|
||||
Reference in New Issue
Block a user