0

I have a site A and site B. Site B has a domain mask to Site A such that contents of Site A are visible at Site B.

Site B contains only a .htaccess -file.

Do I need other files besides .htaccess at the site B?

Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697

1 Answers1

1

If all requests to site B are mapped to an equivalent request at Site A, then no, you don't.

chaos
  • 122,029
  • 33
  • 303
  • 309
  • So a .htaccess is enough, and I do not need any other files. Do I need to put an empty index.html to Site B for security? – Léo Léopold Hertz 준영 Apr 06 '09 at 18:32
  • No. What would that secure? http://siteb.foo/ is being mapped to http://sitea.foo/; no one's going to be able to get a generated index of siteb's contents, and anyway there's nothing to secure. – chaos Apr 06 '09 at 18:36
  • 2
    Even if they asked for your .htaccess, and the request were allowed (Apache ships with requests to .ht* denied ever since SO user Jason Coco submitted a patch for it circa 1998), they'd only get site A's, if any. – chaos Apr 06 '09 at 18:38