I've managed to install drupal 8 using composer and following script:
composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction
I decided to use composer since it seems to be the new way and you get all the dependencies with it.
But the structure is different then installing drupal by downloading it to the server. And that's my problem.
I'm using shared hosting and before composer everything landed in the folder public_html. But with composer there's a folder called web inside public_html that holds drupal itself (or at least it seems that way to me). So instead of having a url like www.mydomain.com I end up with www.mydomain.com/web to reach the site.
My question is how do I do to hide /web from the url? Or do I do something when installing via composer?
I've done a temporary solution that hides /web just from the frontpage. Had to create a new .htaccess in public_html which included following:
RewriteRule ^$ web/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /$1 [L]
But as soon as you click on a different page the /web is there again.
Any hints or of course answers are most welcome.
Thanks //Tobias