# Vehicle Verify — public/.htaccess
# NameHero / cPanel

# Force PHP 8.1 (recommended for this project)
# Uncomment the line that matches your NameHero PHP version:
# AddHandler application/x-httpd-php81 .php
# AddHandler application/x-httpd-php80 .php
# AddHandler application/x-httpd-php74 .php

# Security
Options -Indexes
ServerSignature Off

# PHP settings
<IfModule mod_php.c>
  php_flag  display_errors    Off
  php_flag  log_errors        On
  php_value error_reporting   E_ALL
</IfModule>

# Pretty URLs (optional)
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /vehicle-verify/public/

  # Redirect www to non-www
  # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  # RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
</IfModule>
