Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP redirect dependent on domain

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25111
    mattvot
    Member

    I got a GoDaddy hosting account, the economy plan to save money. But you can only add domains to point to the root. How would I create a php script that would for example go:

    IF domain is "phpmyadmin.com" GOTO "../php"
    IF domain is "somatelse.com" GOTO "../som"

    Any ideas?

    #58910
    mattvot
    Member

    I’ve had a go at this myself. This will work correctly, right?

    Code:
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.