Im trying to simplify the subdomain complexity perception to the user so I would like to mask the subdomain.
My goal is the following:
When the user tries to get here
blog.example.com/blog/whatever I would like to mask the subdomain to be
example.com/blog/whatever Same content served but with the subdomain hidden.
I have tried the following but with no success.
<IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^https://blog\.example.com\/blog [NC] RewriteRule ^(.*)$ http://example.com/blog/$1 [R=301,L] </IfModule> Update: Rewrite module is enabled