Options All -Indexes

RewriteEngine On

# Rewrite rule to handle clean URLs and pass the query string for edit (ID should not appear in the URL)
# RewriteCond %{QUERY_STRING} ^id=([0-9]+)$
# RewriteRule ^editemployee$ index.php?route=editemployee&%{QUERY_STRING} [QSA]

# Rewrite rule to handle other clean URLs and pass query parameters like 'id'
RewriteRule ^([-a-zA-Z0-9]+)(/([0-9]+))?$ index.php?route=$1&id=$3 [QSA]
