Hop til indhold

Snippets

Go coding!

  • Forside
  • Links

Hvad leder du efter?

Kategorier

  • Accessibility
  • ACF
  • Angular
  • Apache
  • CMS
  • Composer
  • Concrete 5
  • CSS
  • Design
  • Firebase
  • Gutenberg
  • htaccess
  • HTML
  • Ionic
  • jQuery
  • localdev
  • PHP
  • phpMyAdmin
  • PWA
  • ReactJS
  • SEO
  • SQL
  • Timber
  • Tools
  • Twig
  • Wordpress
  • Wordpress plugins

Seneste

  • Forhindre Android Chrome pull-to-refresh
  • htaccess redirect til https og non-www
  • Vis Yoast metabox under ACF felter på edit screen
  • Lando lamp opsætning
  • Composer reminder

Meta

  • Log ind
  • Indlægsfeed
  • Kommentarfeed
  • WordPress.org

Kategori: Apache

htaccess redirect til https og non-www

Tilføj nedenstående til htaccess.

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Udgivet i 3. oktober 20193. oktober 2019Kategorier ApacheSkriv kommentar til htaccess redirect til https og non-www
Drevet af WordPress