Firstly forgive my lack of knowledge in this area.
I have a subdomain that is setup and directs to domain by default,
I need the subdomain to direct to a folder/file within the domain without changing the subdomain url.
sub.example.com to point to
example.com/folder.php?name=forums but keep the subdomain url…
sub.example.com and also when accessing
example.com/folder.php?name=forums it needs to redirect to
sub.example.com as well.
I need to only make this change in my vhosts file if I can.
Server running apache 2.4 I can permanent redirect in vhosts
example.com/folder.php?name=forums but dont know how to keep the
sub.example.com url from changing.
Have used this in vhosts
Redirect permanent /
The redirect works fine but I need it to not show
example.com/folder.php?name=Forums but keep the url of the subdomain
Thank you for any help or solutions.