Skip to content

janpecha/htaccess-subdomains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.htaccess for dynamic subdomains

Buy me a coffee

Buy me a coffee

Bitcoin bc1qrq9egf99a6z3576twggrp6uv5td5r3pq0j4awe

Directory tree

  • DocumentRoot
    • www_root (for www.domain.tld)
    • forum_root (for forum.domain.tld)
    • support_root (for support.domain.tld)
    • archive.forum_root (for archive.forum.domain.tld)
    • etc.

Features

  • dynamic subdomains
  • redirecting from domain.tld to www.domain.tld
  • redirecting from www.sub.domain.tld to sub.domain.tld
  • 404 HTTP code for nonexistent subdomains

Article: https://www.janpecha.cz/blog/subdomeny-pomoci-htaccess/ (in Czech)
License: WTFPL

Releases

No releases published

Packages

No packages published