WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU folders view on one domain and not others (6 posts)

  1. dfwgreg
    Member
    Posted 3 years ago #

    Is there a way for one site to view a certain folder and the rest can not? I would like to use ZenPhoto on one site and have it viewed on one site and not have the rest view it. I tried putting the gallery in /wp-content/blogs.dir/3/gallery and it could not view it. Any ideas on how tot fix this?

    Thanks,
    Greg

  2. dfwgreg
    Member
    Posted 3 years ago #

    I may have confused people so I'll try again. I have WordPress Multi-blog enabled. I want to install Zenphoto on one domain and not have the other domains see this folder. I tried putting the folder on /wp-content/blogs.dir/3/gallery and I get a 404 error. I don't want to put this in the default directory / as all domains have access to this directory, also for SEO reasons.

    Can this be done?

    Thanks,
    Greg

  3. No ... we get it. It's just ... Not really. I mean, you can't really do it out of the box.

    Regardless of if you're using subdomains (sub1.domain.com and sub2.domain.com etc) or multiple top level domains (domain1.com domain2.com etc), the whole kit and kaboodle runs from your master domain's public_html folder (or whatever).

    So if you make a folder /zenphoto then it will be accessible by ALL blogs.

    The only way around it I can think of is if you setup .htaccess to redirect any requests for the folder that if they DON'T come from a specific domain/subdomain, they get rerouted to a sorry page.

    (also please don't bump - many of us troll the 'no replies' page to help the stranded. Bumping takes you OFF that list.)

  4. dfwgreg
    Member
    Posted 3 years ago #

    Got it. Thanks.

  5. dfwgreg
    Member
    Posted 3 years ago #

    Update: It somewhat blocked using this code

    RewriteCond %{HTTP_REFERER} controlalttv\.net [NC]
    RewriteRule .* - [F]

    However, you can still view the site from controlalttv.net/gallery but with the css removed.

  6. adrockmk2
    Member
    Posted 3 years ago #

    I too wish there was a simple solution for this...hopefully someone posts one :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.