⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.26
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
rider.techlup.co.ke
/
admin
/
View File Name :
.htaccess
<IfModule mod_rewrite.c> RewriteEngine On # Redirect to HTTPS (optional, remove if not needed) RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Ensure the RewriteBase is set correctly RewriteBase / # Redirect to public folder if request is not for an existing file or directory RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ public/index.php [L] # Handle URL rewriting to remove index.php RewriteCond %{THE_REQUEST} \s/+index\.php [NC] RewriteRule ^ index.php [R=301,L] # Ensure queries go through index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [L] </IfModule> # Prevent direct access to .env and other sensitive files <FilesMatch "^(\.env|\.htaccess|composer\.(json|lock)|artisan|server\.php)$"> Order Allow,Deny Deny from all </FilesMatch>