Title: include problem with wp-blog-header.php
Last modified: August 19, 2016

---

# include problem with wp-blog-header.php

 *  [525-1](https://wordpress.org/support/users/525-1/)
 * (@525-1)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/include-problem-with-wp-blog-headerphp/)
 * hi,
    i am changing my server but i have problems.
 * i installed four wordpress in one domain.
    mydomain.com/blog mydomain.com/news
   mydomain.com/events mydomain.com/videos etc… mydomain.com/blog’s blog url is 
   mydomain.com and it is my front page. example, i show last mydomain.com/news 
   posts with custom field image on this page with include method.
 * include codes is not working my new server.
    example: `<?php include 'http://
   www.mydomain.com/news/lastnews.php'; ?>`
 * allow_url_include is Off on my new server php.ini file and my new server’s admins
   told me “we can’t change this. we suggest, ‘php_flag allow_url_include On’ add
   your .htaccess file.”
 * i did this but it is not working. i found this code for include.
    `<?php include
   $_SERVER['DOCUMENT_ROOT'].'/news/lastnews.php'; ?>` this include method is working
   but this code doesn’t show my last news (mydomain.com/news). this code show my
   last blog (mydomain.com/blog) posts. because lastnews.php is starting with `<?
   php $posts_per_page = '-1'; require_once('wp-blog-header.php');?>` code and wordpress
   think ‘wp-blog-header.php’ is for mydomain.com/blog. in fact, it for mydomain.
   com/news.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/include-problem-with-wp-blog-headerphp/#post-887654)
 * won’t this work?
 * > <?php $posts_per_page = ‘-1’; require_once(‘/news/wp-blog-header.php’);?>
 *  Thread Starter [525-1](https://wordpress.org/support/users/525-1/)
 * (@525-1)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/include-problem-with-wp-blog-headerphp/#post-887668)
 * unfortunately 🙁 your suggest is working for /blog, too.
 *  [soccerplayersbase](https://wordpress.org/support/users/soccerplayersbase/)
 * (@soccerplayersbase)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/include-problem-with-wp-blog-headerphp/#post-888028)
 * why not have wordpress MU instead of having wordpress in different subdirectories
   wordpress MU is easier to maintain and is almost same as wordpress standard, 
   but i would recommend wordpress standardif you have small number of blogs, because
   editor isn’t available in MU. you have to do it through FTP

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘include problem with wp-blog-header.php’ is closed to new replies.

## Tags

 * [wp-blog-header.php](https://wordpress.org/support/topic-tag/wp-blog-header-php/)

 * 3 replies
 * 3 participants
 * Last reply from: [soccerplayersbase](https://wordpress.org/support/users/soccerplayersbase/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/include-problem-with-wp-blog-headerphp/#post-888028)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
