.htaccess for dynamic subdomains
Switch branches/tags
Nothing to show
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 Added support for HTTPS Oct 30, 2013
tests Tests: updated Oct 30, 2013
.gitignore added .gitignore files Jul 2, 2013
composer.json added basic tests Jul 2, 2013
composer.lock Composer: updated libraries (Nette, Kdyby\Curl, Tester) Oct 30, 2013
readme.md Readme: updated Feb 8, 2018

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