• Resolved Thomas McMahon

    (@twistermc)


    I’m building a web tool and it needs to be hosted on the same domain as the WordPress site, however the tool and WordPress don’t play well together.

    How can I create a directory, or pages, completely separate from WordPress so I can run my custom code?

    WordPress is installed at the top level of the website, so it controls everything and I’d like to know if there is a way I can tell WordPress not to control certain pages or directories. Possibly via htaccess?

    Note: It has to be completely separate from WordPress in order to work.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • […]however the tool and WordPress don’t play well together.
    Define this better, would ya.

    What is this tool, anyway? Be specific because we don’t have time to throw random answers at you.

    Thread Starter Thomas McMahon

    (@twistermc)

    The tool is the Chicklet Creator http://www.twistermc.com/shake/RSS-index.php and it’s going to be hosted on http://www.toprankblog.com

    The issues:
    1) $_POST form variables are not passed to files that are included in the code page, thus I’m having to re-write everything.
    2) WordPress won’t display the WordPress specific functions on the code page.

    What I’ve come to figure out is that it’d be much better if I could just create a /tools/ folder and put my files in there. Then tell WordPress to not to control that folder.

    It says it’s available as a wordpress plugin. Just install that. http://www.twistermc.com/shake/wordpress-chicklet.php

    Thread Starter Thomas McMahon

    (@twistermc)

    manstraw – The question is “How can I create a directory, or pages, completely separate from WordPress so I can run my custom code?”

    The plugin is not the tool. The tool is the form. Two PHP pages, 5 PHP include files and lots of variables and images. I’m not trying to implement the Chicklet Creator code on the blog, but the Chicklet Creators entire web application. AKA: Hosting the application on a different site.

    ok, I get what you mean now.

    The easiest way to do this is to move the blog to a subdir (like wordpress, or blog, or info, or sally). WordPress really takes over all of the rewrite rules for it’s dir and down, so separating the content by giving wordpress it’s own dir it really kind of important.

    When I’ve done that, I write a new .htaccess file in the root html dir that will plop a visitor who goes to http://www.toprankblog.com/ to http://www.toprankblog.com/wordpress/. You can even send them to a specific page that way if you want a welcome page to show first.

    Then I would add a text widget, or custom edit the sidebar to contain a link to the other parts of your website as desired.

    Does that make sense? Do you need help with the .htaccess for the root html dir?

    Note: It has to be completely separate from WordPress in order to work.

    That’s pretty ambiguous. Maybe it’s my own mental block…

    2) WordPress won’t display the WordPress specific functions on the code page.

    Display? You mean they aren’t recognized? Won’t work? Did you include

    <?php
    require('../../../../wp-blog-header.php');
    ?>

    ?

    Thread Starter Thomas McMahon

    (@twistermc)

    I’m an idiot. 🙁

    I’m sorry to have wasted everyone’s time. It seems that I’ve been chasing all the wrong problems and I just needed a good kick in the head to think straight.

    WordPress does exactly what I want, I just didn’t try it. 🙁

    Again, my apologies. I was doing everything the hard way.

    I also had same problem and still not fixed yet.

    I’m still not sure what you’re really trying to do I think. And what was the fix?

    Thread Starter Thomas McMahon

    (@twistermc)

    manstraw – I’m trying to host a web based tool on a domain that has WordPress installed at the top level. However, I didn’t want WordPress to interfere with the tools use as the tool has nothing to do with the blog.

    JasonFun – From what I’ve seen (briefly), WordPress doesn’t touch files in other folders.

    it will interfere if you use permalinks. stay away from those.

    also, if you upgrade the blog, there is a possibility some of your other files could be overwritten. what it doesn’t touch today, it may in the future after an upgrade. anything within it’s dir should not be considered safe, unless it’s within wp-content.

    i still recommend you put wordpress in it’s own dir, and then use rewrites to have wordpress come up like it’s in the root.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How do I create complete separate pages or directories?’ is closed to new replies.