• Hello,

    First of all, sorry for my poor english, i’m french, but the french community seems to not know the solution to my issue.

    I want to Give WordPress its Own Directory While Leaving Your Blog in the Root Directory BUT, i want to keep my current index.php, caus, hem, my website is a webshop, not a blog. That’s the only difference with the solution of this tutorial, but i can’t see how to make that, without changing the core of wordpress.

    If someone have a solution, i would be pleased to hear it 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • Well, you can’t really do that without a lot of messing with the core files.
    If you want to keep your current index.php in the root – then you can not use the tutorial you linked to.

    Thread Starter Tong

    (@tong)

    Thanks.

    So, i’ve got to forgot this idea ?

    But my goal is to embedding wordpress in my oscommerce. So i’ve to include the oscommerce files in wordpress. And if the index.php file of wp is in a sub directory, for example root/blog/index.php, i don’t see how to include files which are in root/osc_includes/, without editing all the paths in the files i’ve to include.

    Thread Starter Tong

    (@tong)

    Nobody have an idea (or i speak english so poor that you don’t understand me) ?

    Your English is fine (for another non-native speaker as myself 🙂

    It’s just that your question

    embedding wordpress in my oscommerce

    sounds like an oscommerce question rather than a WP issue.

    The WP part I have answered: since the WordPress engine is always looking for “index.php” in many operations, it is not easy to change it to something else.

    Thread Starter Tong

    (@tong)

    Yes i’ve seen that.

    But if i can’t have my blog at the root of my site, it become nor a wordpress or oscommerce question, but a php one 🙂
    Cause i don’t know how to load config files which uses relative paths within their code via a php include() from a different directory than root.

    And if i change the core of wordpress for renaming index.php, i imagine that i will regret it later.

    But anyway, thanks for your help.

    This may be too old of a post… but, it seems as though what you are looking for is:

    root php include (or same directory include):
    include(file.php);

    osc_includes/ php include (or higher directory include):
    include(../osc_includes/file.php);

    “../” will take you back one level in the directory tree. You can combine these to, such as “../../file.php” if you must go up two directories higher.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Changing the default page index.php to blog.php’ is closed to new replies.