Question

How do I go about making a subdomain appear to be a subfolder?

Posted August 2, 2017 1.9k views
CentOSDeployment

I’m trying to find out how to make a subdomain appear as a subfolder ie:

if I have -

forum.example.com

but I want to browse to -

example.com/forum

to find it rather than have it available at forum.example.com

also - how would I work this with SSL?

should I add forum.example.com to the certificate? or would it be covered under example.com?

Thanks for any pointers!

Johnny

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @bigjohnny

Are you using Apache or Nginx?

If you don’t want to use forum.example.com anymore, then you can setup redirects to example.com/forum/
And then you only need to add HTTPS to example.com since you’re not going to actively use forum.example.com

  • Hi @hansen I’m using Nginx..

    I haven’t even set it up yet, so I am not using forum.example.com at all, but deploying with dokku I think its easiest to deploy the app to that subdomain.

    Thanks for the advice, redirecting seems like a pretty easy option as well,

    Cheers,

    Johnny

Submit an Answer