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 directoryMy wordpress configurations are:
Wordpress address (URL): http://mysite/blog
Blog address (URL): http://mysite/blogEverything 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
The topic ‘calling wordpress from outside’ is closed to new replies.