Title: include header doesnt work!
Last modified: August 18, 2016

---

# include header doesnt work!

 *  [bdblogs](https://wordpress.org/support/users/bdblogs/)
 * (@bdblogs)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/include-header-doesnt-work/)
 * Hi i have tried to include header but nothing seems to working out!
    i have folder
   in ../blogs/test/header.php
 * In header.php i have code:
 * <html><head>
    <?php include (‘[http://www.example.net/wp-content/themes/k2/header.php&#8217](http://www.example.net/wp-content/themes/k2/header.php&#8217););?
   > </head> <body> content </body> </html>
 * when i visit : blogs.example.net/test/header.php
    it returns:
 * Warning: main([http://www.example.net/wp-content/themes/k2/header.php](http://www.example.net/wp-content/themes/k2/header.php))[
   function.main]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not 
   Found in /home/example/public_html/blogs/test/header.php on line 2
 * Warning: main() [function.include]: Failed opening ‘[http://www.example.net/wp-content/themes/k2/header.php&#8217](http://www.example.net/wp-content/themes/k2/header.php&#8217);
   for inclusion include_path=’.:/usr/lib/php:/usr/local/lib/php/extensions:/usr/
   local/lib/php’) in /home/example/public_html/blogs/test/header.php on line 2
 * any idea what to do?
    content

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

 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/include-header-doesnt-work/#post-406739)
 * Try going back to basics: What is it you’re trying to achieve?
 *  Thread Starter [bdblogs](https://wordpress.org/support/users/bdblogs/)
 * (@bdblogs)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/include-header-doesnt-work/#post-406946)
 * i want to include header.php in a different php file which i have created in “../
   test” directory.
 * i have tried this
    <?php include (‘[http://www.example.net/wp-content/themes/k2/header.php&#8217](http://www.example.net/wp-content/themes/k2/header.php&#8217););?
   ></head>
 * But it doesnt workout.

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

The topic ‘include header doesnt work!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bdblogs](https://wordpress.org/support/users/bdblogs/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/include-header-doesnt-work/#post-406946)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
