I need to Display an custom url source,when users mistype an subdomain.
For example , If user types hames.domain.com instead of games.domain.com , The hames.domain.com should display html source of index of domain.com.
P.s : i dont want iframe or redirection,It needs to display index of main domain.
i tried below code
RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com$ [NC]
RewriteRule ^%1/(.*)$ /$1 [L,NC]