0

I would like to have the following:

maindomain.com pointing to public_html/subfolder

PLUS

subdomain.maindomain.com pointing to public_html

I managed to do the first on htaccess but don't know how to do the second.

Bence Kaulics
  • 7,066
  • 7
  • 33
  • 63
MAR
  • 553
  • 2
  • 7
  • 17

1 Answers1

0

Rewrite role in Apache can be helpful. take a look at the following question:

.htaccess rewrite subdomain to directory

Mostafa Barmshory
  • 1,849
  • 24
  • 39