Skip to content

virtualserver.org

code snippets, served virtually

Tag: Apache

Posted on 15.11.201810.07.2022

Alle Subdomains umleiten auf Domain

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^domain\.tld$ [NC]
RewriteRule (.*) https://domain.tld/$1 [R=301,L]
Posted on 15.11.201810.07.2022

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]
Posted on 15.11.201810.07.2022

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]
Posted on 15.11.201810.07.2022

ErrorDocument 404

ErrorDocument 404 https://domain.tld

Posts navigation

Previous page Page 1 Page 2 Page 3

Suche

Categories

  • Excel VBA
  • Excel-Formeln
  • Freifunk
  • htaccess
  • Java
  • JavaScript
  • Linux
  • Netzwerk
  • Nextcloud
  • PHP
  • Python
  • RegEx
  • SEO
  • SQL
  • SSL / TLS
  • Windows
  • Word
  • WordPress
  • XML

Compliance

  • Disclaimer & Datenschutz
  • Impressum

RZ EMEA

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Proudly powered by WordPress
Click to Copy