# AlexPress Towing Service - Apache Rewrites for Clean URLs & Language Mapping
RewriteEngine On
RewriteBase /

# 1. Map root English clean URLs to /en/ directory files or root files
RewriteRule ^car-unlocking/?$ en/car-unlocking.html [L,QSA]
RewriteRule ^towing-service/?$ en/towing-service.html [L,QSA]
RewriteRule ^roadside-tire-change/?$ en/roadside-tire-change.html [L,QSA]
RewriteRule ^fuel-assistance/?$ en/fuel-assistance.html [L,QSA]
RewriteRule ^battery-boost/?$ en/battery-boost.html [L,QSA]
RewriteRule ^junk-car-buying/?$ en/junk-car-buying.html [L,QSA]

# 2. Map root Spanish clean URLs to root files
RewriteRule ^servicio-de-grua/?$ servicio-de-grua.html [L,QSA]
RewriteRule ^cambio-de-neumaticos/?$ cambio-de-neumaticos.html [L,QSA]
RewriteRule ^asistencia-de-combustible/?$ asistencia-de-combustible.html [L,QSA]
RewriteRule ^apertura-de-vehiculos/?$ apertura-de-vehiculos.html [L,QSA]
RewriteRule ^paso-de-corriente/?$ paso-de-corriente.html [L,QSA]
RewriteRule ^compra-autos-chatarra/?$ compra-autos-chatarra.html [L,QSA]

# 3. Automatic .html Extension Removal / Resolution
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [L,QSA]
