title: How to skip web directory from URL in drupal 8 installation using htaccess after domain pointing?
body: <p>I have installerd my drupal website and added inital configurations and pages using ip address , eg : <a href="http://111.22.33.88/web" rel="nofollow noreferrer">http://111.22.33.88/web</a>
  My installation directory is as follow(I just added only basic files to know the structure)</p>
  
  <pre><code>public_html/
      vendors/
      web/
          core/
          sites/
          modules/
          themes/
          .htaccess
          index.php
  </code></pre>
  
  <p>Everything works fine but after pointing my ip address to my domain www.mysite.com. It works fine only if I add web subfolder in the path ie www.mysite.com/web</p>
  
  <p>I dont need <strong>web</strong> folder in the url's. I have found one solution using .htaccess file and the code is as follows</p>
  
  <pre><code>Options -Indexes
  Options +FollowSymLinks 
  RewriteEngine on
  RewriteRule ^$ web/index.php [L]
  RewriteCond %{DOCUMENT_ROOT}/web%{REQUEST_URI} -f
  RewriteRule .* web/$0 [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* web/index.php?q=$0 [QSA]
  </code></pre>
  
  <p>I have added the above code by creating a new htaccess file in /public_html/.htaccess</p>
  
  <p>Site and admin links works but some issues still exists , ie after login as admin, www.mysite.com/user/login, site get logged in but shows a white page of error as follows
  <strong>"Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it."</strong></p>
  
  <p>Can someone help to fix this, I think I have missed something in my newly created .htaccess file or some additional settings to  eliminate web directory</p>