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
  • 6,700
  • 7
  • 31
  • 61
MAR
  • 479
  • 2
  • 6
  • 15

1 Answers1

0

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

.htaccess rewrite subdomain to directory

Mostafa
  • 1,589
  • 20
  • 35