Zum Inhalt springen

virtualserver.org

code snippets, served virtually

Kategorie: htaccess

Veröffentlicht am 15.11.201807.12.2018

Einzelne Subdomain umleiten auf Domain

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.tld$ [NC]
RewriteRule (.*) https://domain.tld/$1 [R=301,L]
Veröffentlicht am 15.11.201807.12.2018

Bei Aufruf über index.php auf ohne index.php rewriten

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://domain.tld/ [R=301,L]
Veröffentlicht am 15.11.201807.12.2018

ErrorDocument 404

ErrorDocument 404 https://domain.tld

Beitrags-Navigation

Vorherige Seite Seite 1 Seite 2 Seite 3

Suche

Kategorien

  • Editor (1)
  • Excel VBA (8)
  • Excel-Formeln (17)
  • htaccess (17)
  • Java (1)
  • JavaScript (1)
  • Linux (11)
  • mySQL (1)
  • Nextcloud (1)
  • PHP (12)
  • Python (1)
  • SEO (2)
  • SSL / TLS (3)
  • Windows (9)
  • Word (1)
  • XML (1)

Compliance

  • Disclaimer & Datenschutz
  • Impressum
Datenschutz & Cookies: Diese Website verwendet Cookies. Wenn du die Website weiterhin nutzt, stimmst du der Verwendung von Cookies zu.
Weitere Informationen, beispielsweise zur Kontrolle von Cookies, findest du hier: Cookie-Richtlinie
Powered by WordPress