WordPress.org

Ready to get started?Download WordPress

Forums

custom php file for a specific child site (2 posts)

  1. steelmaiden
    Member
    Posted 1 year ago #

    Hi,

    i want to have a custom php file on one of my child sites.

    For example: child3.mydomain.com/somecustomfile.php

    How do i do this?

  2. Make the file and put it in mydomain.com

    Then in the PHP code, have it check that the domain is child3 and, if not, redirect to a 404.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.