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.