Hello wpeeps,
Having some issues getting the Loop to work externally of the default index.php file.
i have a new install of latest wp 2 that is working correctly with permalinks on.
My wp base directory is one directory under the docroot (/docroot/blog/wp-content/.....)
docroot
|
|
blog
I have apache Override All set and my .htaccess file in the /docroot/blog directory looks like this (i believe this is out of the box as well):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
What i am trying to do is get access to the Loop in my docroot directory. So in testing this i have followed the Loop examples and even tried to copy the blog/index.php file to docroot and even to another named file in the /blog directory - './blog/2index.php'.
However i access this file through a browser - ./blog/2index.php?p=1
./blog/2index.php?post=1
./blog/2index.php?tag=general
./blog/2index.php
--moving the file up a directory and modifying the include path for wp-blog-header.php - same results.
Any requests to these pages always returns "Sorry, no posts matched your criteria."
I am certain i have correctly included the ./blog/wp-blog-header.php and my file reads data from this header file.
Anyone have any troubleshotting ideas?
thx-sb