# ====================================
# CLEAN URLS FOR PHP FILES IN /clo/
# ====================================

RewriteEngine On
RewriteBase /clo/

# Allow clean URLs
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L]

# Redirect .php URLs to clean URLs
RewriteCond %{THE_REQUEST} \s/+(.+?)\.php[\s?] [NC]
RewriteRule ^ %1 [R=301,L]

# ====================================
# OPTIONAL
# ====================================

AddDefaultCharset UTF-8
Options -Indexes

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 month"
</IfModule>