Forums

[resolved] WordPress its Own Directory - Blog in another directory - not same as codex (7 posts)

  1. bmstone
    Member
    Posted 5 months ago #

    Hi, I'm sorry if this is a noob question.

    I have been trying to install wordpress so that my index.php is in one directory and wordpress installation in another. i have found this article in the codex -

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    the problem with this article is that it only explains how to do it if you want the index.php file in root.

    i want my index.php file to be in domain.com/store,
    and the rest of the installation to be in domain.com/wordpress

    step nine of the guide says to do this to the index.php file:

    Change the line that says:
    require('./wp-blog-header.php');
    to the following, using your directory name for the WordPress core files:
    require('./wordpress/wp-blog-header.php');

    what do i need to write for the path to go from domain.com/store to domain.com/wordpress?

    any help would be very appreciated, i've been searching google and these forums for a good hour now with no luck.

  2. bmstone
    Member
    Posted 5 months ago #

    Hi guys,

    i've tried using -

    require($_SERVER['DOCUMENT_ROOT'].'/wordpress/wp-blog-header.php');

    this still adds the 'store' folder to the path making it

    store/wordpress/wp-blog-header.php

    is there any way to actually make this work or am i wasting my time?

    please i could really use some help on this.

  3. meesha
    Member
    Posted 5 months ago #

    To determine if you are wasting your time or not, I need to know why you are trying to do this?

    Meesha

  4. bmstone
    Member
    Posted 5 months ago #

    i want the URL bar to contain the address 'store.domain.com'

    redirecting to it on the server side doesn't work because it reverts to the wordpress install folder.

  5. meesha
    Member
    Posted 5 months ago #

    I don't know if you can do that or not - it's a little outside of my knowledge. I do know that I run all of my blogs out of the install folder and name that folder something relivent.

    Most are http://www.domain.com/blog/ but I also use http://www.domain.com/whatsup/ on one site as it's all news and reviews. If I was running it as a store, and I've thought about it, I'd use http://www.domain.com/store/.

    That way I can install additional software using the same domain, like one site has the blog - http://www.domain.com/blog/ - plus a Simple Machines forum which is http://www.domain.com/user-forums/. You can see that at http://www.sizzleonthegrill.com.

    Go to http://www.wallawallawinenews.com and look at how I have it arranged. All the departments are database driven and each has it's own folder, Events, Wineries, Realtors, etc. That way when they wanted a blog added I just installed it in a /whatsup/ folder added a navigation link and it is very compatable with the rest of the departments.

    Best I can offer on this one,

    Meesha

  6. figaro
    Member
    Posted 5 months ago #

    @meesha: That's good advice. The best way to make a blog look like it's in a directory called "store" is to actually put it in a directory called "store".

  7. bmstone
    Member
    Posted 5 months ago #

    haha yeah well of course it's logical to put the install in a folder called store.

    I was looking at this as more of an exercise in rerouting the processes.

    thanks for your help meesha, i think this one is more effort than it is actually worth.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.