1

I have a site I created with Drupal 8, lets say http://falzon.xyz/.
Elsewhere, I have a site created with Jekyll, a bunch of static pages linked to each other visible http://www.elina-noe.eu/).
I'd like to "embed" the static site as a "subsite" of falzon.xyz, i.e. accessible as http://falzon.xyz/elina-noe/, by 'simply' putting all its files in a subfolder of the D8 site.
How can I do that?

1
  • Using @GiorgosK's advice, it's working! Anybody having the base URL (falzon.xyz/elina-noe) is able to navigate this 'subsite'. How can I limit the access to the users of my 'root' site (i.e. falzon.xyz)?
    – gbmapo
    Apr 16, 2018 at 11:08

1 Answer 1

3

Creating a subfolder inside your docroot folder such as docroot/elina-noe should suffice.

Put all the subsite files into this folder and if there is a index.html you can access your subsite just by visiting the subfolder http://falzon.xyz/elina-noe/

4
  • The caveat here is your web server is configured to use index.html when a dir path is requested. Many default web server configs do this, but just FYI in case you see otherwise.
    – Shawn Conn
    Apr 14, 2018 at 21:54
  • @GiorgosK I come back on this (old) topic to ask a new question: is there a way to restrict the access to this "subsite" to the actual users allowed to the main Drupal site?
    – gbmapo
    Mar 4, 2021 at 13:03
  • I don't think I have the answer to it and I am not sure it is such an easy question, perhaps create a new question for that @gbmapo
    – GiorgosK
    Mar 4, 2021 at 13:14
  • 1
    @GiorgosK Finally, I put one .htaccess file in elina-noe subfolder with RewriteCond "%{HTTP_REFERER}" !^http://www\.falzon\.xyz [NC]and RewriteRule ^.*$ - [F]in it and it seems to work.
    – gbmapo
    Mar 8, 2021 at 17:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.