Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /thehomedesign/

# Remove index.php from URL
RewriteCond %{THE_REQUEST} ^.*/index\.php 
RewriteRule ^(.*)index.php$ /thehomedesign/$1 [R=301,L] 

# Handle all requests
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]

# Subadmin profile slug (for @username)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^@(.*)$ subadmin-profile.php?slug=$1 [QSA,L]