WordPress.org

Ready to get started?Download WordPress

Forums

Restrict subfolder to be accessed only from one child blog of a multisite (2 posts)

  1. yibebiz
    Member
    Posted 1 year ago #

    I am running three blogs from a wordpress multisite. Currently, I am developing a separate, non-wordpress application. I want to link this application with blog1. I put the application in the subfoler of my root directory (The WordPress multisite is installed in the root of my host). I linked the application in the menu of blog1 and from the application menu to the blog. So far so good.

    But, it is possible to access the application from all the three blogs. I want the application to be accessible only from blog1-domain/my-app/ but when I tried blog2-domain/my-app, it just opened normally. So, currently, the application is accessible from all the three domains followed by /my-app/, while my intention was to access the app using only blog1's domain.

    I don't think it is proper to go this way. Then, what can I do to restrict my app to be accessible only from a my blog1-domain/my-app ? Or am I not using a well organized structure?.
    The reason I prefered to make the application separate from the blog is that, the application requires multiple calculations inside it, and I am not currently prepared to do that within wordpress. In the future, I may make it through a custom plugin.

    I use WordPress MU Domain Mapping plugin to map my parked domains to the blogs.

    I am open to all kind of suggestions.

    Thank you for your help

  2. Then, what can I do to restrict my app to be accessible only from a my blog1-domain/my-app

    You could probably do it via .htaccess. Have it check if NOT blog1-domain, then kick them out?

Topic Closed

This topic has been closed to new replies.

About this Topic