I've read a tonne of questions on this and tried a few solutions, but I'm just not getting the results I want.
I'm currently using:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cp\.example\.net
RewriteRule ^(.*)$ http://example.net/gamepanel/public/$1 [L,NC,QSA]
Which doesn't quite work as intended. When I navigate to cp.example.net I am redirected to http://example.net/gamepanel/public/
What I want to have happen is for cp.example.net
to show the content at http://example.net/gamepanel/public
, whilst showing the subdomain in the URL.
Also cp.example.net/user
should show content from example.net/gamepanel/public/user
Some help on achieving this would be much appreciated!