Support » Fixing WordPress » calling wordpress from outside

  • Hi, I’m calling wordpress from outside wordpress directory and something goes wrong when I switch to permalink.
    This is my structure:
    http://mysite/blog <—- blog powerd by wordpress

    WordPress configuration:
    Both “wordpress” and “blog” directory are http://mysite/blog

    Now in my root directory (http://mysite/index.php) I’m querying the wordpress for my last post title. To do that I include the require_once(‘blog/wp-blog-header.php’) in the http://mysite/index.php to enable me to use the wordpress functions.

    Till here everything works fine, but when I switch to permalinks the problems get to start. For user perspective everything works fine, but when I check the headers they all come with 404 error code (googlebot doesn’t like this).

    What’s the problem with permalinks that it causes the 404 error but page stills displays? Can’t I include the wp-blog-header.php from outsite the wordpress directory? What am I doing wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘calling wordpress from outside’ is closed to new replies.