Support » Fixing WordPress » calling wordpress from outside

  • Hi, I’m calling the wordpress from outside the wordpress directory, let me explain this better:

    http://mysite/ <—home of website
    http://mysite/blog <—blog (powerd by wordpress)
    http://mysite/dir1 <—- another directory
    http://mysite/dir2 <—- another directory

    My wordpress configurations are:
    Wordpress address (URL): http://mysite/blog
    Blog address (URL): http://mysite/blog

    Everything works fine.
    Now in my root directory (http://mysite/index.php) I call wordpress to query my last post title, for that I need to include the blog header require(‘./blog/wp-blog-header.php’) and use the wordpress functions. Till here everything works fine. But when I switch to permalinks the problems get to start, the problems are:
    – for normal user everything looks fine (pages display well) but if I check the headers they all come with 404 error (googlebot doesn’t like this)

    What I’m doing wrong? Can’t I include the blog header from outside the wordpress directory? Notice, without permalink everything is OK (headers return 200).
    If you need more clues to help please ask.

    Thanks

Viewing 1 replies (of 1 total)
  • I think I have the same problem. I have WordPress installed in a /blog folder. Including WP posts in the index.php at the root works fine.

    But then when I turn on Permalinks, I get ‘Sorry, no posts matched your criteria’ on the homepage.

    What’s going on?

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