Redirect all requests to https://www.url.de
.htaccess
I was adding https to a drupal multisite installation. https should be forced on all urls and http is not possible no more. You get this with:
# uncomment the following: #1 RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # 2 Redirect to HTTPS RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Similar Posts:
- howto drupal 8 URL 301 redirects
- composer require fails because it can’t delete default.services.yml
- How to change Drupal core files
- Install Drupal 8 via composer
- How to change canonical URL in drupal 8 / 9
898