Skip to content
.htaccess for dynamic subdomains
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
composer.json
composer.lock
readme.md

readme.md

.htaccess for dynamic subdomains

Become a Patron!

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: http://janpecha.blogista.cz/subdomeny-pomoci-htaccess (in Czech)
License: WTFPL

You can’t perform that action at this time.