RewriteEngine On

# SEO-friendly URLs for centers
RewriteRule ^centers/([^/]+)\.html$ centers/center-details.php?center=$1 [L,QSA]

# SEO-friendly URLs for packages
RewriteRule ^packages/([^/]+)\.html$ packages/package-details.php?package=$1 [L,QSA]