WP Hive » Troubleshooting and How-To

Other files and such

(9 posts)

Tags:


  1. wwday3
    Member

    I'm adding some affiliate banners and images, and I'd just as soon have them point to the "root" of the domain (like domain.com/pic.jpg). I tried it and it did not filter through. So, I looked at the wp-hive plugin, and it seems to handle the robots.txt, sitemap, favicon, but there doesn't seem to be allowances for other stuff. What about an /images folder? Easy to implement? How about other folders and types?

    Posted 3 years ago #
  2. wwday3
    Member

    To add to this - I also need to add an article directory script to the "root" for each domain. Could I accomplish that by just replicating the robots.txt code in the plugin?

    Posted 3 years ago #
  3. ikailo
    Developer

    That's an interesting request. Can't say that it's possible right now.

    If you are adept with PHP, then you can try replicating the sitemap.xml redirect algorithm. A word of warning though. One file is quite a lot of code, so it is likely not the most efficient way to handle this. (Although I can't think of any other way right now.)

    The process for robots.txt is a little different because WP already handles half of it.

    Posted 3 years ago #
  4. ikailo
    Developer

    It would actually be a relatively simple process to map a domain.com/firstlevel folder to the current site's content folder. This is an idea that is in the works. It's unlikely that it will make it into the forthcoming release, but would be slated for a future one.

    Posted 3 years ago #
  5. wwday3
    Member

    Could I instead do something like domain.com/wp-content/wp-hive/domain/---whatever--- until whenever the real functionality is released?

    Posted 3 years ago #
  6. ikailo
    Developer

    Not as is. You would need to write some code to do it.

    Posted 3 years ago #
  7. wwday3
    Member

    Tell me if this is a good plan. I will attempt to replicate the sitemap.xml functionality in a separate script, and include that script in your plugin. ???

    Posted 3 years ago #
  8. wwday3
    Member

    Actually, when looking at it, I thought of a slightly different approach. Let me know if I'm off base here...

    The script I was to use doesn't actually have to reside in the "root" folder (I was mistaken about that). It just needs to be accessible to the article directory. So, I'm thinking I could just drop it in domain.com/wp-content with some sort of unique name. That path "seems" to get resolved OK.

    Am I correct in my assumption?

    Posted 3 years ago #
  9. ikailo
    Developer

    Yes, that would work. Just remember that it will still be accessible from all the other sites in the hive.

    domain.com/wp-content/file.php will show the same file as otherdomain.com/wp-content/file.php

    You can't prevent access to it from other sites, but if you don't publish it on other blogs, then it is 'as though' it doesn't exist. Alternatively, you can always check the hostname at the start of the script and kill the execution if it's not called by the right domain.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.