# =====================================================
# BMYO Membership System - Localhost Compatible
# =====================================================

RewriteEngine On

# =====================================================
# BASIC SECURITY (Light)
# =====================================================

# Only hide directory listing
Options -Indexes

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

ErrorDocument 403 /error.php
ErrorDocument 404 /error.php

# =====================================================
# REWRITE RULES
# =====================================================

# If the request is not for a real file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Route everything to index.php
RewriteRule ^(.*)$ index.php [QSA,L]

# =====================================================
# END OF .HTACCESS
# =====================================================